Skip to main content
Class implementing the mfa-login-options screen functionality This screen allows users to select which MFA factor they want to use for login
Example
const mfaLoginOptions = new MfaLoginOptions();
await mfaLoginOptions.enroll({
  action: 'push-notification'
});

Constructors

MfaLoginOptions
Constructor
Creates an instance of MfaLoginOptions screen manager

Properties

branding
client
organization
prompt
screen
The screen object for the mfa-login-options screen
tenant
transaction
untrustedData
user
screenIdentifier
string

Methods

enroll
Promise<void>
Continues the login process with the selected MFA factor
Example
const mfaLoginOptions = new MfaLoginOptions();
await mfaLoginOptions.enroll({
  action: 'push-notification'
});
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.
returnToPrevious
Promise<void>
Example
import MfaLoginOptions from '@auth0/auth0-acul-js/mfa-login-options';

const mfaLoginOptions = new MfaLoginOptions();
mfaLoginOptions.returnToPrevious();