Skip to main content
Class implementing the reset-password-mfa-otp-challenge screen functionality
Example
import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';

const resetPasswordMfaOtpChallenge = new ResetPasswordMfaOtpChallenge();
await resetPasswordMfaOtpChallenge.continue({
  code: '123456',
});

Constructors

ResetPasswordMfaOtpChallenge
Constructor
Creates an instance of ResetPasswordMfaOtpChallenge screen manager

Properties

screenIdentifier
string
Screen identifier for validation and telemetry

Methods

continue
Promise<void>
Continues with the OTP challenge using the provided code.
Example
import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';

const resetPasswordMfaOtpChallenge = new ResetPasswordMfaOtpChallenge();
await resetPasswordMfaOtpChallenge.continue({
  code: '123456',
});
getErrors
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.
tryAnotherMethod
Promise<void>
Allows the user to try another MFA method.
Example
import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';

const resetPasswordMfaOtpChallenge = new ResetPasswordMfaOtpChallenge();
await resetPasswordMfaOtpChallenge.tryAnotherMethod();