Class implementing the mfa-otp-challenge screen functionality
This screen is shown when a user needs to enter an OTP code during MFA
import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge' ;
const mfaOtpChallenge = new MfaOtpChallenge ();
await mfaOtpChallenge . continue ({
code: '123456' ,
rememberDevice: true
});
Constructors
Creates an instance of MfaOtpChallenge screen manager
Properties
Methods
Continues with the OTP challenge using the provided code import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge' ;
const mfaOtpChallenge = new MfaOtpChallenge ();
await mfaOtpChallenge . continue ({
code: '123456' ,
rememberDevice: true
});
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.
Allows the user to try another MFA method import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge' ;
const mfaOtpChallenge = new MfaOtpChallenge ();
await mfaOtpChallenge . tryAnotherMethod ();
Optional custom options to include with the request