Skip to main content
The MfaEnrollResult class implements the mfa-enroll-result screen functionality.
MfaEnrollResult

Constructors

Create an instance of MfaEnrollResult screen. It initializes the BaseContext and sets up the screen property with an instance of ScreenOverride tailored for this screen.
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}`);

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl.
Provides information about the user’s organization, such as organization id and name.
Contains data about the current prompt in the authentication flow.
Contains details specific to the mfa-enroll-result screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during login.
Details of the active user, including username, email, and roles.

Methods

getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.