Skip to main content
Class implementing the mfa-otp-enrollment-code screen functionality. This screen is displayed when the user needs to enter the OTP code received during MFA enrollment.
Example
import MfaOtpEnrollmentCode from '@auth0/auth0-acul-js/mfa-otp-enrollment-code';

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

Constructors

MfaOtpEnrollmentCode
Constructor
Creates an instance of MfaOtpEnrollmentCode.

Properties

branding
client
organization
prompt
screen
The screen properties for the mfa-otp-enrollment-code screen.
tenant
transaction
untrustedData
user
screenIdentifier
string
Screen identifier for validation and telemetry

Methods

continue
Promise<void>
Continues the MFA OTP enrollment process by submitting the OTP code.
Example
import MfaOtpEnrollmentCode from '@auth0/auth0-acul-js/mfa-otp-enrollment-code';

const mfaOtpEnrollmentCode = new MfaOtpEnrollmentCode();
await mfaOtpEnrollmentCode.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 MfaOtpEnrollmentCode from '@auth0/auth0-acul-js/mfa-otp-enrollment-code';

const mfaOtpEnrollmentCode = new MfaOtpEnrollmentCode();
await mfaOtpEnrollmentCode.tryAnotherMethod();