Passer au contenu principal
Classe qui implémente les fonctionnalités de l’écran mfa-voice-enrollment.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollmentManager = new MfaVoiceEnrollment();
const handleContinueEnrollment = async () => {
 try {
   await mfaVoiceEnrollmentManager.continue({
     phone: '+1234567890',
     // Ajoutez toute CustomOptions facultative ici au besoin 
   });
   console.log('Voice enrollment continued successfully.');
 } catch (error) {
   console.error('Error continuing voice enrollment:', error);
 }
};

Constructeurs

MfaVoiceEnrollment
Constructor
Crée une instance du gestionnaire d’écran MfaVoiceEnrollment.

Propriétés

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

Méthodes

continue
Promise<void>
Poursuit l’action par défaut.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollmentManager = new MfaVoiceEnrollment();
const handleContinueEnrollment = async () => {
 try {
   await mfaVoiceEnrollmentManager.continue({
     phone: '+1234567890',
     // Ajoutez ici des CustomOptions facultatives, au besoin 
   });
   console.log('Voice enrollment continued successfully.');
 } catch (error) {
   console.error('Error continuing voice enrollment:', error);
 }
};
getErrors
Récupère le tableau d’erreurs de transaction à partir du contexte, ou un tableau vide s’il n’en existe aucune.Un tableau d’objets d’erreur provenant du contexte de transaction.
selectPhoneCountryCode
Promise<void>
Permet de choisir un indicatif de pays pour le numéro de téléphone.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollment = new MfaVoiceEnrollment();
const handlePickCountryCode = async () => {
 await mfaVoiceEnrollment.selectPhoneCountryCode();
};
tryAnotherMethod
Promise<void>
Permet d’essayer une autre méthode d’authentification.
Example
import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';
const mfaVoiceEnrollment = new MfaVoiceEnrollment();
const handleTryAnotherMethod = async () => {
 await mfaVoiceEnrollment.tryAnotherMethod();
};