Skip to main content
MfaEnrollResult
Example
import MfaEnrollResult from '@auth0/auth0-acul-js/mfa-enroll-result';

const mfaEnrollResultScreen = new MfaEnrollResult();

// Access screen data
const enrollmentStatus = mfaEnrollResultScreen.screen.data?.status;
const pageTitle = mfaEnrollResultScreen.screen.texts?.title;

console.log(`MFA Enrollment Status: ${enrollmentStatus}`);
console.log(`Page Title: ${pageTitle}`);

Constructors

MfaEnrollResult
Constructor
Creates an instance of MfaEnrollResult screen manager. It initializes the BaseContext and sets up the screen property with an instance of ScreenOverride tailored for this screen.

Throws

If the Universal Login Context is not available or if the current screen name in the context does not match MfaEnrollResult.screenIdentifier.

Properties

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string
static

Methods

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.