Class implementing the mfa-voice-enrollment screen functionality.
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
Creates an instance of MfaVoiceEnrollment screen manager.
Properties
Methods
Continues with the default action.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);
}
};
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.
Allows picking a country code for the phone numberimport MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollment = new MfaVoiceEnrollment();
const handlePickCountryCode = async () => {
await mfaVoiceEnrollment.selectPhoneCountryCode();
};
Allows trying another authentication methodimport MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollment = new MfaVoiceEnrollment();
const handleTryAnotherMethod = async () => {
await mfaVoiceEnrollment.tryAnotherMethod();
};