Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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. |