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.

ValueDescription
BUILT_IN_AUTHENTICATORIdentity verified with a built-in authenticator.
EMAILIdentity verified with a verification code sent in an email message.
PASSWORDIdentity verified with a password.
SALESFORCE_AUTHENTICATORIdentity verified by Salesforce Authenticator.
SECURITY_KEYIdentity verified by a WebAuthn-compatible physical security key. Includes all security keys registered or used after Summer ’22.
SMSIdentity verified with a verification code sent via SMS message.
TOTPIdentity verified with a time-based one-time password (TOTP).
U2FIdentity 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.