Passer au contenu principal
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.submitEmailChallenge({
    code: "<string>"
});

Constructeurs

EmailIdentifierChallenge
Constructor

Propriétés

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

Méthodes

getErrors
Récupère le tableau des erreurs de transaction à partir du contexte, ou un tableau vide s’il n’y en a aucune.Un tableau d’objets d’erreur provenant du contexte de la transaction.
resendCode
Promise<void>
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';

const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.resendCode();
resendManager
Utility FeatureFournit la fonctionnalité de renvoi avec gestion du délai d’attente pour cet écranObjet ResendControl avec la méthode startResend
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
  const handleStatusChange = (remainingSeconds, isDisabled) => {
    setDisabled(isDisabled);
    setRemaining(remainingSeconds);
  };

  const handleTimeout = () => {
    console.log('Timeout completed, resend is now available');
  };

  const { startResend } = emailChallenge.resendManager({
    timeoutSeconds: 15,
    onStatusChange: handleStatusChange,
    onTimeout: handleTimeout
  });
  
  // Appelez startResend lorsque l'utilisateur clique sur le bouton de renvoi
  await startResend();
returnToPrevious
Promise<void>
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';

const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.returnToPrevious();
submitEmailChallenge
Promise<void>
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';

const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.submitEmailChallenge({
    code: "<string>"
});