Skip to main content

MFA OTP Challenge screen class

The OTP Challenge screen class provides methods associated with the mfa-otp-challenge screen. This screen is shown when a user needs to enter an OTP code during MFA.
Import and instantiate the MFA OTP Challenge screen class:

Properties

The MFA OTP Challenge screen class properties are:

Methods

The MFA OTP Challenge screen class methods are:

continue( options ?)

This method continues with the OTP challenge using the provided code.
Parameter                 TypeRequiredDescription
codestringYesThe code entered by the user.
rememberBrowserbooleanNoRemember the user’s browser configuration.

tryAnotherMethod( options ?)

This method allows the user to try another MFA method.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

MFA OTP Enrollment Code screen class

The MFA OTP Enrollment Code screen class provides methods associated with the mfa-otp-enrollment-code screen.
Import and instantiate the MFA OTP Enrollment Code screen class:

Properties

The MFA OTP Enrollment Code screen class properties are:

Methods

The MFA OTP Enrollment Code screen class methods are:

continue( options ?)

This method continues the MFA OTP enrollment process by submitting the OTP code.
Parameter                 TypeRequiredDescription
codestringYesThe code entered by the user.

tryAnotherMethod( options ?)

This method allows the user to try another MFA method.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

MFA OTP Enrollment QR screen class

The MFA OTP Enrollment QR screen class provides methods associated with the mfa-otp-enrollment-qr screen.
Import and instantiate the MFA OTP Enrollment QR screen class:

Properties

The MFA OTP Enrollment QR screen class properties are:

Methods

The MFA OTP Enrollment QR screen class methods are:

continue( options ?)

This method continues the MFA OTP enrollment QR process by submitting the OTP code.
Parameter                 TypeRequiredDescription
codestringYesThe code entered by the user.
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

toggleView( options ?)

This method navigates to the authenticator selection screen.
Parameter                 TypeRequiredDescription
rememberBrowserbooleanNoRemember the user’s browser configuration.
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

tryAnotherMethod( options ?)

This method allows the user to try another MFA method.
Parameter                 TypeRequiredDescription
rememberBrowserbooleanNoRemember the user’s browser configuration.
[key: string]string | number | boolean | undefinedNoOptional data collected from user.