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

# ResetPasswordMfaPhoneChallengeMembers

ResetPasswordMfaPhoneChallengeMembers

````ts Example theme={null}
export interface ResetPasswordMfaPhoneChallengeMembers extends BaseMembers {
  /**
   * Access to renseignements propres au client (e.g., client ID, name).
   * @type {ClientMembers}
   */
  client: ClientMembers;

  /**
   * Access to renseignements propres à l’organisation, if applicable.
   * @type {OrganizationMembers}
   */
  organization: OrganizationMembers;

  /**
   * Access to prompt details (e.g., prompt name).
   * @type {PromptMembers}
   */
  prompt: PromptMembers;

  /**
   * Access to the propriété et donnée propre à l’écran of the 'reset-password-mfa-phone-challenge' screen.
   * @type {ScreenMembersOnResetPasswordMfaPhoneChallenge}
   */
  screen: ScreenMembersOnResetPasswordMfaPhoneChallenge;

  /**
   * Access to the détail de la transaction en cours (e.g., state, errors).
   * @type {TransactionMembers}
   */
  transaction: TransactionMembers;

  /**
   * Sends the verification code to the user's phone via the specified method (SMS or Voice).
   * This action corresponds to the user clicking the "Send Code via SMS" or "Send Code via Voice Call" button.
   * It triggers the Auth0 backend to initiate the code delivery process.
   *
   * @param {ContinueOptions} payload - The options specifying the delivery type ('sms' or 'voice') and any custom data.
   * @returns {Promise<void>} A promise that resolves when the action is successfully submitted to the server.
   * @throws {Error} Throws an error if the submission fails (e.g., network issue, invalid state).
   * @example
   * ```typescript
   * import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';
   *
   * const screen = new ResetPasswordMfaPhoneChallenge();
   *
   * // Send code via SMS
   * await screen.continue({ type: 'sms' });
   *
   * // Send code via Voice Call
   * await screen.continue({ type: 'voice' });
   * ```
   */
  continue(payload: ContinueOptions): Promise<void>;

  /**
   * Navigates the user to the screen where they can select an alternative MFA method.
   * This action corresponds to the user clicking a "Try Another Method" button.
   *
   * @param {TryAnotherMethodOptions} payload - Les options précisant le type de défi actuel (`sms` ou `voice`) et toute donnée personnalisée. Le champ `type` est nécessaire pour indiquer au backend le flux que l'utilisateur quitte.
   * @returns {Promise<void>} Une Promise qui se résout lorsque l'action est soumise avec réussite au serveur.
   * @throws {Error} Throws an error si la soumission échoue.
   * @example
   * ```typescript
   * import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';
   *
   * const screen = new ResetPasswordMfaPhoneChallenge();
   *
   * // If the user was presented with SMS option initially:
   * await screen.tryAnotherMethod({ type: 'sms' });
   *
   * // If the user was presented with Voice option initially:
   * await screen.tryAnotherMethod({ type: 'voice' });
   * ```
   */
  tryAnotherMethod(payload: TryAnotherMethodOptions): Promise<void>;
}
````

<h2 id="properties">
  Propriétés
</h2>

<ParamField body="branding" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>} />

<ParamField body="client" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  Accès aux renseignements propres au client (p. ex., ID client, nom).
</ParamField>

<ParamField body="organization" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  Accès aux renseignements propres à l’organisation, le cas échéant.
</ParamField>

<ParamField body="prompt" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  Accès aux détails du prompt (p. ex., le nom du prompt).
</ParamField>

<ParamField body="screen" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnResetPasswordMfaPhoneChallenge">ScreenMembersOnResetPasswordMfaPhoneChallenge</a></span>}>
  Accès à la propriété et donnée propre à l’écran 'reset-password-mfa-phone-challenge'.
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>} />

<ParamField body="transaction" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  Accès aux détails de la transaction en cours (p. ex., state, erreurs).
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>} />

<ParamField body="user" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>} />

<h2 id="methods">
  Méthodes
</h2>

<ParamField body="continue" type="Promise<void>">
  Envoie le code de vérification au téléphone de l’utilisateur selon la méthode indiquée (SMS ou appel vocal).
  Cette action correspond au clic de l’utilisateur sur le bouton « Send Code via SMS » ou « Send Code via Voice Call ».
  Elle déclenche le backend Auth0 pour lancer le processus d’envoi du code.

  Une promesse qui se résout lorsque l’action est soumise au serveur avec succès.

  <h4 id="throws">
    Throws
  </h4>

  Génère une erreur si la soumission échoue (par ex. en cas de problème réseau ou d’`invalid state`).

  ```typescript Example theme={null}
  import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';

  const screen = new ResetPasswordMfaPhoneChallenge();

  // Envoyer le code par SMS
  await screen.continue({ type: 'sms' });

  // Envoyer le code par appel vocal
  await screen.continue({ type: 'voice' });
  ```

  <Expandable title="Paramètres">
    <ParamField body="payload" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/ResetPasswordMfaPhoneChallengeContinueOptions">ResetPasswordMfaPhoneChallengeContinueOptions</a></span>}>
      Les options qui précisent le type d’envoi (`sms` ou `voice`) ainsi que toute donnée personnalisée.

      **Propriétés**

      <ParamField body="type" type="&#x22;sms&#x22; | &#x22;voice&#x22;">
        La méthode d’envoi sélectionnée par l’utilisateur pour recevoir le code de vérification.

        * `sms` : Envoie le code par message texte.
        * `voice` : Envoie le code par appel vocal.
      </ParamField>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="tryAnotherMethod" type="Promise<void>">
  Redirige l’utilisateur vers l’écran où il peut sélectionner une autre méthode d’AMF.
  Cette action correspond au clic de l’utilisateur sur un bouton « Try Another Method ».

  Une promesse qui se résout lorsque l’action est soumise au serveur avec succès.

  <h4 id="throws-2">
    Throws
  </h4>

  Génère une erreur si la soumission échoue.

  ```typescript Example theme={null}
  import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';

  const screen = new ResetPasswordMfaPhoneChallenge();

  // Si l’utilisateur a d’abord reçu l’option SMS :
  await screen.tryAnotherMethod({ type: 'sms' });

  // Si l’utilisateur a d’abord reçu l’option d’appel vocal :
  await screen.tryAnotherMethod({ type: 'voice' });
  ```

  <Expandable title="Paramètres">
    <ParamField body="payload" type={<span><a href="/docs/fr-ca/libraries/acul/js-sdk/Screens/interfaces/ResetPasswordMfaPhoneChallengeTryAnotherMethodOptions">ResetPasswordMfaPhoneChallengeTryAnotherMethodOptions</a></span>}>
      Les options qui précisent le type de défi actuel (`sms` ou `voice`) ainsi que toute donnée personnalisée. Le champ `type` est nécessaire pour indiquer au backend de quel flux l’utilisateur s’éloigne.

      **Propriétés**

      <ParamField body="type" type="&#x22;sms&#x22; | &#x22;voice&#x22;">
        La méthode d’envoi qui a été initialement présentée ou sélectionnée sur l’écran actuel.
        Elle est requise par le point de terminaison d’API pour traiter correctement l’action `pick-authenticator`.

        * `sms` : Indique que l’écran actuel concernait un défi SMS.
        * `voice` : Indique que l’écran actuel concernait un défi vocal.
      </ParamField>
    </ParamField>
  </Expandable>
</ParamField>
