---
schema_version: "1"
id: 8da11622d663f003c7af8a9b0ce5dea95272e952ce526d71b5df155c82470686
title: CustomOneTimePasswordDeliveryResult Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_Auth_CustomOneTimePasswordDeliveryResult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Auth_CustomOneTimePasswordDeliveryResult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7306dc6febdc9bb7bb3747880d1fd92c5f884311d33771288636e068838ff73a
description: Indicates the status of an attempt to send a one-time password (OTP) to an external user via a custom messaging provider.
---
# CustomOneTimePasswordDeliveryResult Enum

Indicates the status of an attempt to send a one-time password (OTP) to an external user via a custom messaging provider.

## Usage

To use this feature, contact Salesforce Customer Support.

This enum specifies the result of the sendOneTimePassword method in an implementation of the Auth.CustomOneTimePasswordDeliveryHandler interface.

## Enum Values

The following are the values of the Auth.CustomOneTimePasswordDeliveryResult enum.

| Value | Description |
| --- | --- |
| COUNTRY\_BLOCK | Indicates that the user’s phone number has a country code that Salesforce doesn’t support. |
| EXCEPTION | Indicates that the handler threw an exception. |
| INVALID\_PHONE\_NUMBER | Indicates that the user’s phone number isn’t valid. For example, it’s in the wrong format or contains characters that aren’t numbers. |
| MESSAGE\_LIMIT\_EXCEEDED | Indicates that your Experience Cloud site reached the message limit allowed by your license. |
| PROVIDER\_ERROR | Indicates an error with the custom OTP service. |
| SUCCESS | Indicates that the OTP message was successfully sent to the user. |