Skip to main content
Class implementing the mfa-voice-enrollment screen functionality.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollmentManager = new MfaVoiceEnrollment();
const handleContinueEnrollment = async () => {
 try {
   await mfaVoiceEnrollmentManager.continue({
     phone: '+1234567890',
     // Add any optional CustomOptions here if needed 
   });
   console.log('Voice enrollment continued successfully.');
 } catch (error) {
   console.error('Error continuing voice enrollment:', error);
 }
};

Constructors

MfaVoiceEnrollment
Constructor
Creates an instance of MfaVoiceEnrollment screen manager.

Properties

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

Methods

continue
Promise<void>
Continues with the default action.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollmentManager = new MfaVoiceEnrollment();
const handleContinueEnrollment = async () => {
 try {
   await mfaVoiceEnrollmentManager.continue({
     phone: '+1234567890',
     // Add any optional CustomOptions here if needed 
   });
   console.log('Voice enrollment continued successfully.');
 } catch (error) {
   console.error('Error continuing voice enrollment:', error);
 }
};
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.
selectPhoneCountryCode
Promise<void>
Allows picking a country code for the phone number
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollment = new MfaVoiceEnrollment();
const handlePickCountryCode = async () => {
 await mfaVoiceEnrollment.selectPhoneCountryCode();
};
tryAnotherMethod
Promise<void>
Allows trying another authentication method
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollment = new MfaVoiceEnrollment();
const handleTryAnotherMethod = async () => {
 await mfaVoiceEnrollment.tryAnotherMethod();
};