Skip to main content
MfaPhoneChallenge
Example

Constructors

Constructor
Initializes a new instance of the MfaPhoneChallenge class. It sets up the screen-specific data by creating an instance of ScreenOverride.

Properties

Holds the specific screen data for the MFA Phone Challenge.
string
The unique identifier for this screen.

Methods

Promise<void>
Submits the user’s choice of receiving the MFA code via SMS or voice call. It uses the phone number provided in the screen context.A promise that resolves upon successful submission.

Throws

Throws an error if the phone number is not available in the screen context or if the submission fails.
Example
Retrieves the array of transaction errors from the context, or an empty array if none exist.An array of error objects from the transaction context.
Promise<void>
Initiates the process for the user to select a different phone number (if applicable). This typically triggers a navigation to a phone selection screen.A promise that resolves upon successful submission.

Throws

Throws an error if the submission fails.
Example
Promise<void>
Allows the user to choose a different MFA method (e.g., OTP, Recovery Code). This typically triggers navigation to the authenticator selection screen.A promise that resolves upon successful submission.

Throws

Throws an error if the submission fails.
Example