Skip to main content
The state of the EnrollMfa component.

Properties

PropertyTypeDescription
method"totp" | "sms"The currently selected MFA method.
methods("totp" | "sms")[]The available MFA methods for enrollment.
stepEnrollMfaStepThe current step of the enrollment flow.
flowDirection"left" | "right"The direction of the flow.
mfaCodestringThe MFA code entered by the user (for verification step).
authUrlnull | stringThe otpauth:// URL for QR code generation (from initiate).
secretnull | stringThe base32-encoded secret for manual entry (from initiate).
phoneNumberstringThe phone number for SMS MFA enrollment (E.164 format).
initiatedAtnull | numberThe timestamp when enrollment was initiated.
isExpiredbooleanWhether the enrollment session has expired.
error| null | string | APIErrorError message or APIError object.
isPendingbooleanWhether a request is pending.
isSuccessbooleanWhether the enrollment was successful.