Skip to main content

MFA Voice Challenge screen class

The Voice Challenge screen class provides methods associated with the mfa-voice-challenge screen. This screen is displayed when the user needs to enter a recovery code to verify their identity.
Import and instantiate the MFA Voice Challenge screen class:

Properties

The MFA Voice Challenge screen class properties are:

Methods

The MFA Voice Challenge screen class methods are:

continue( options? )

This method continues the voice challenge flow.
Parameter                 TypeRequiredDescription
codestringYesThe code entered by the user.
rememberBrowserbooleanNoRemember the user’s browser configuration.

pickPhone( options ?)

This method redirects the user to a phone selection screen.

resendCode( options ?)

This method requests a new voice call with a verification code.

switchToSms( options? )

This method switches the user from voice confirmation to SMS confirmation.

tryAnotherMethod( options ?)

This method allows the user to request an alternative MFA method.

MFA Voice Enrollment screen class

The MFA Voice Enrollment screen class provides methods associated with the mfa-voice-enrollment screen. This screen is displayed for a user needs to enter a phone number to receive a voice call with a code to continue enrollment.
Import and instantiate the MFA Voice Enrollment screen class:

Properties

The MFA Voice Enrollment screen class properties are:

Methods

The MFA Voice Enrollment screen class methods are:

continue( options ?)

This method continues the enrollment process.
Parameter                 TypeRequiredDescription
phonestringNoThe phone number entered by the user.
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

selectPhoneCountryCode( options ?)

This method allows users to pick their country code.

tryAnotherMethod( options ?)

This method asks users to try SMS if they already tried voice, or vice versa.