Skip to main content
Initiates MFA enrollment for an end user. For TOTP, this generates a TOTP secret and returns an otpauth:// URL that can be scanned with an authenticator app like Google Authenticator. The secret must be verified within 5 minutes by calling submitMfaEnrollment. For SMS, this sends a 6-digit OTP code to the provided phone number. The OTP code must be verified within 5 minutes. You can use any phone number for SMS MFA, even if it differs from your SMS authentication phone number.

Parameters

ParameterTypeDescription
optionsInitiateMfaOptionsThe options for initiating MFA enrollment.

Returns

Promise<InitiateMfaEnrollmentResult> The result containing enrollment details specific to the method.

Example