Skip to main content

Documentation Index

Fetch the complete documentation index at: https://auth0.com/llms.txt

Use this file to discover all available pages before exploring further.

The MfaRecoveryCodeChallenge class implements the mfa-recovery-code-challenge screen functionality. This screen is displayed when the user needs to enter a recovery code to log in.
ACUL MFA Recovery Code Challenge

Constructors

Create an instance of MFA Recovery Code Challenge screen manager:
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
await mfaRecoveryCodeChallenge.continue({ code: 'YOUR_RECOVERY_CODE' });

Properties

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

Methods

changeLanguage
Promise<void>
This method changes the display language of the Universal Login page.
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
mfaRecoveryCodeChallenge.changeLanguage({
  language: 'fr',
});
Method Parameters

continue
Promise<void>
This method continues with the provided recovery code.
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
await mfaRecoveryCodeChallenge.continue({ code: 'YOUR_RECOVERY_CODE' });
Method Parameters

getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.
tryAnotherMethod
Promise<void>
This method navigates to the screen where the user can pick another MFA method.
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
await mfaRecoveryCodeChallenge.tryAnotherMethod();
Method Parameters