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.
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.
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. |