Skip to main content

MFA Phone Challenge screen class

The Phone Challenge screen class provides methods associated with the mfa-phone-challenge screen. This screen is displayed when the user needs to receive a code to verity their identity.
Import and instantiate the MFA Phone Challenge screen class:

Properties

The MFA Phone Challenge screen class properties are:

Methods

The MFA Phone Challenge screen class methods are:

continue( options ?)

This method submits the user’s choice of receiving the MFA code via SMS or voice call. It uses the phone number from the class screen property.
Parameter                 TypeRequiredDescription
typesms | voiceYesdefine the method to receive the verification code.

pickPhone( options ?)

This method redirects the user to a phone selection screen.

tryAnotherMethod( options ?)

This method redirects the user to the authenticator selection screen.

MFA Phone Enrollment screen class

The Device Code Confirmation screen class provides methods associated with the mfa-phone-enrollment screen. This screen is displayed when a user needs to confirm the device code.
Import and instantiate the MFA Phone Enrollment screen class:

Properties

The MFA Phone Enrollment screen class properties are:

Methods

The MFA Phone Enrollment screen class methods are:

continueEnrollment( options ?)

This method continues the enrollment process with the provided phone number and selected type SMS or voice.
Parameter                 TypeRequiredDescription
phonestringYesThe user’s phone number.
typesms | voiceYesdefine the method to receive the verification code.

pickCountryCode( options ?)

This method allows users to pick their country code.

tryAnotherMethod( options ?)

This method asks users to try another MFA method.