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.

VerificationMethod Enum

Contains the different ways users can identify themselves when logging in. You can use it to implement mobile-centric passwordless login pages and to self-register (and deregister) verification methods.

Usage

The enum value is an argument in System.Site.passwordlessLogin, System.UserManagement.registerVerificationMethod, and System.UserManagement.deregisterVerificationMethod methods. The value indicates the method used to verify a user’s identity.

Enum Values

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

Value Description
BUILT_IN_AUTHENTICATOR Identity verified with a built-in authenticator.
EMAIL Identity verified with a verification code sent in an email message.
PASSWORD Identity verified with a password.
SALESFORCE_AUTHENTICATOR Identity verified by Salesforce Authenticator.
SECURITY_KEY Identity verified by a WebAuthn-compatible physical security key. Includes all security keys registered or used after Summer ’22.
SMS Identity verified with a verification code sent via SMS message.
TOTP Identity verified with a time-based one-time password (TOTP).
U2F Identity verified by a U2F physical security key, such as a YubiKey.

For U2F security keys registered or used after Summer ’22, use SECURITY_KEY instead.