Skip to main content

Documentation Index

Fetch the complete documentation index at: https://auth0-fix-auth-api-docs-migration-completion.mintlify.app/llms.txt

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

The MfaVoiceEnrollment class implements the mfa-voice-enrollment screen functionality. This screen is displayed when the user needs to enter a phone number to receive a voice call with a verification code to continue enrollment.
MfaVoiceEnrollment

Constructors

Create an instance of MFA Voice Enrollment screen manager:
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';

const mfaVoiceEnrollment = new MfaVoiceEnrollment();
await mfaVoiceEnrollment.continue({ phone: '+1234567890' });

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the mfa-voice-enrollment 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-voice-enrollment 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-voice-enrollment screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during MFA voice enrollment.
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 MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';

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

continue
Promise<void>
This method continues the voice enrollment process with the provided phone number.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';

const mfaVoiceEnrollment = new MfaVoiceEnrollment();
await mfaVoiceEnrollment.continue({ phone: '+1234567890' });
Method Parameters

getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.
selectPhoneCountryCode
Promise<void>
This method navigates to the screen where the user can select a country code for their phone number.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';

const mfaVoiceEnrollment = new MfaVoiceEnrollment();
await mfaVoiceEnrollment.selectPhoneCountryCode();
Method Parameters

tryAnotherMethod
Promise<void>
This method allows the user to try another MFA method.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';

const mfaVoiceEnrollment = new MfaVoiceEnrollment();
await mfaVoiceEnrollment.tryAnotherMethod();
Method Parameters