> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PhoneIdentifierChallenge

> Décrit toutes les propriétés et méthodes disponibles pour personnaliser l’écran `phone-identifier-challenge` d’Universal Login.

La classe PhoneIdentifierChallenge implémente la fonctionnalité de l’écran `phone-identifier-challenge`. Cet écran invite l’utilisateur à saisir un code de vérification envoyé à son numéro de téléphone afin de confirmer son identité.

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3Cog5ZVlHphrRltcyZkq2d/c959fd72052731922ba251516403d0ac/Screenshot_2025-02-06_at_20.11.38.png?fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=5c6c2fa8f48f3b7d0b0d05ff0c5363d5" alt="undefined" width="369" height="494" data-path="docs/images/cdy7uua7fh8z/3Cog5ZVlHphrRltcyZkq2d/c959fd72052731922ba251516403d0ac/Screenshot_2025-02-06_at_20.11.38.png" />
</Frame>

<div id="constructors">
  ## Constructeurs
</div>

Créez une instance du gestionnaire de l’écran PhoneIdentifierChallenge :

```typescript Example theme={null}
import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
await phoneIdentifierChallengeManager.submitPhoneChallenge({
  code: '123456',
});
```

<div id="properties">
  ## Propriétés
</div>

<ParamField body="branding" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  Fournit des configurations liées à l’image de marque, comme le thème et ses paramètres.
</ParamField>

<ParamField body="client" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  Fournit des configurations liées à l’application, comme `id`, `name` et `logoUrl`, pour l’écran `phone-identifier-challenge`.
</ParamField>

<ParamField body="organization" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  Fournit des renseignements sur l’organisation de l’utilisateur, comme `id` et `name`.
</ParamField>

<ParamField body="prompt" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  Contient des données sur l’invite actuelle dans le flux d’authentification.
</ParamField>

<ParamField body="screen" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnPhoneIdentifierChallenge">ScreenMembersOnPhoneIdentifierChallenge</a></span>}>
  Contient des détails propres à l’écran `phone-identifier-challenge`, y compris sa configuration et son contexte.
</ParamField>

<ParamField body="tenant" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>}>
  Contient des données liées au locataire, comme `id` et les métadonnées associées.
</ParamField>

<ParamField body="transaction" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  Fournit des données propres à la transaction pour l’écran `phone-identifier-challenge`, comme les identifiants actifs et les états du flux.
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  Gère les données non fiables transmises au SDK, comme les entrées utilisateur pendant le flux de défi par téléphone.
</ParamField>

<ParamField body="user" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>}>
  Détails sur l’utilisateur actif, y compris `username`, `email` et `roles`.
</ParamField>

<div id="methods">
  ## Méthodes
</div>

<ParamField body="changeLanguage" type="Promise<void>">
  Cette méthode modifie la langue d’affichage de la page Universal Login.

  ```typescript Example theme={null}
  import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
  const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
  phoneIdentifierChallengeManager.changeLanguage({
    language: 'fr',
  });
  ```

  **Paramètres de la méthode**

  <Expandable title="Paramètres">
    <ParamField body="options">
      [LanguageChangeOptions](/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions).
    </ParamField>

    <ParamField body="language" type="string" required>
      Le code de langue de la langue souhaitée (par exemple, `'en'`, `'fr'`, `'es'`).
    </ParamField>

    <ParamField body="persist?" type="&#x22;session&#x22;">
      Lorsque cette valeur est définie sur `'session'`, la langue sélectionnée est conservée pendant toute la session.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  Cette méthode récupère le tableau des erreurs de transaction à partir du contexte, ou un tableau vide s’il n’y en a aucune.
</ParamField>

<ParamField body="resendCode" type="Promise<void>">
  Cette méthode renvoie le code de vérification au numéro de téléphone de l’utilisateur.

  ```typescript Example theme={null}
  import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
  const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
  await phoneIdentifierChallengeManager.resendCode();
  ```
</ParamField>

<ParamField body="resendManager" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/ResendControl">ResendControl</a></span>}>
  Cette méthode fournit une fonctionnalité de renvoi avec gestion du délai d’expiration. Elle renvoie un objet [`ResendControl`](/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/ResendControl) avec une méthode `startResend()` qui déclenche le renvoi et impose une période d’attente avant que l’utilisateur puisse renvoyer le code à nouveau.

  ```typescript Example theme={null}
  import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
  const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
  const { startResend } = phoneIdentifierChallengeManager.resendManager({
    timeoutSeconds: 30,
  });
  await startResend();
  ```

  **Paramètres de la méthode**

  <Expandable title="Paramètres">
    <ParamField body="options">
      [StartResendOptions](/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/StartResendOptions).
    </ParamField>

    <ParamField body="timeoutSeconds?" type="number">
      La durée de la période d’attente, en secondes, avant que l’utilisateur puisse renvoyer le code à nouveau.
    </ParamField>

    <ParamField body="onStatusChange?" type={<span><a href="/fr-CA/docs/libraries/acul/js-sdk/Screens/type-aliases/OnStatusChangeCallback">OnStatusChangeCallback</a></span>}>
      Callback invoqué chaque fois que le statut du renvoi change; il renvoie le nombre de secondes restantes et indique si la fonctionnalité de renvoi est actuellement désactivée.
    </ParamField>

    <ParamField body="onTimeout?" type="() => void">
      Callback invoqué lorsque la période d’attente prend fin et que le renvoi redevient disponible.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="returnToPrevious" type="Promise<void>">
  Cette méthode ramène l’utilisateur à l’écran précédent.

  ```typescript Example theme={null}
  import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
  const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
  await phoneIdentifierChallengeManager.returnToPrevious();
  ```
</ParamField>

<ParamField body="submitPhoneChallenge" type="Promise<void>">
  Cette méthode soumet le code de vérification téléphonique pour terminer la vérification.

  ```typescript Example theme={null}
  import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
  const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
  await phoneIdentifierChallengeManager.submitPhoneChallenge({
    code: '123456',
  });
  ```

  **Paramètres de la méthode**

  <Expandable title="Paramètres">
    <ParamField body="options">
      [PhoneChallengeOptions](/fr-CA/docs/libraries/acul/js-sdk/Screens/interfaces/PhoneChallengeOptions).
    </ParamField>

    <ParamField body="code" type="string" required>
      Le code de vérification envoyé au numéro de téléphone de l’utilisateur.
    </ParamField>

    <ParamField body="captcha?" type="string">
      Le jeton de réponse CAPTCHA, si CAPTCHA est activé pour ce locataire.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="switchToText" type="Promise<void>">
  Cette méthode fait passer la méthode d’envoi du code de vérification au message texte SMS.

  ```typescript Example theme={null}
  import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
  const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
  await phoneIdentifierChallengeManager.switchToText();
  ```
</ParamField>

<ParamField body="switchToVoice" type="Promise<void>">
  Cette méthode fait passer la méthode d’envoi du code de vérification à un appel vocal.

  ```typescript Example theme={null}
  import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
  const phoneIdentifierChallengeManager = new PhoneIdentifierChallenge();
  await phoneIdentifierChallengeManager.switchToVoice();
  ```
</ParamField>
