Creates an instance of MfaVoiceEnrollment screen manager.
Static
screenContinues with the default action.
Optional
payload: { phone: string } & Classes.CustomOptionsOptional payload.
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);
}
};
Allows picking a country code for the phone number
Optional
payload: Classes.CustomOptionsOptional payload.
Allows trying another authentication method
Optional
payload: Classes.CustomOptionsOptional payload.
Class implementing the mfa-voice-enrollment screen functionality.