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

# ResetPasswordMfaPhoneChallenge

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/generaltranslationinc/zzYYN5BbwWVQSB2A/docs/images/cdy7uua7fh8z/5nxfRZqcpBBwzZGlJ7wm8y/a8b3a66ec4ffc07dd934b734e021c306/Screenshot_2025-04-24_at_09.53.31.png?fit=max&auto=format&n=zzYYN5BbwWVQSB2A&q=85&s=f69120ecebfd3f93bc35906f01283adc" alt="" width="363" height="510" data-path="docs/images/cdy7uua7fh8z/5nxfRZqcpBBwzZGlJ7wm8y/a8b3a66ec4ffc07dd934b734e021c306/Screenshot_2025-04-24_at_09.53.31.png" />
</Frame>

ResetPasswordMfaPhoneChallenge

```ts Example theme={null}
const screen = new ResetPasswordMfaPhoneChallenge();
try {
  await screen.continue({ type: 'sms' });
  // Redirects to code entry screen on success
} catch (error) {
  console.error("Failed to send SMS code:", error);
}
```

## Constructors

<ParamField body="ResetPasswordMfaPhoneChallenge" type="Constructor">
  Initializes a new instance of the `ResetPasswordMfaPhoneChallenge` class.
  It retrieves the screen context and sets up the screen-specific properties.

  #### Throws

  If the Universal Login Context is not available or if the screen name doesn't match.
</ParamField>

## Properties

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

<ParamField body="client" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  Access to client-specific information (e.g., client ID, name).
</ParamField>

<ParamField body="organization" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  Access to organization-specific information, if applicable.
</ParamField>

<ParamField body="prompt" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  Access to prompt details (e.g., prompt name).
</ParamField>

<ParamField body="screen" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnResetPasswordMfaPhoneChallenge">ScreenMembersOnResetPasswordMfaPhoneChallenge</a></span>}>
  Holds the specific screen data and properties, processed by ScreenOverride.
</ParamField>

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

<ParamField body="transaction" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  Access to the current transaction details (e.g., state, errors).
</ParamField>

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

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

<ParamField body="screenIdentifier" type="string">
  The unique identifier for this screen, used internally and for telemetry.
</ParamField>

## Methods

<ParamField body="continue" type="Promise<void>">
  Sends the verification code to the user's phone via the selected method (SMS or Voice).
  Corresponds to the 'Continue' action in the OpenAPI definition (action: 'default').

  A promise resolving upon successful submission to the server.

  #### Throws

  If the form submission fails.

  ```typescript Example theme={null}
  const screen = new ResetPasswordMfaPhoneChallenge();
  try {
    await screen.continue({ type: 'sms' });
    // Redirects to code entry screen on success
  } catch (error) {
    console.error("Failed to send SMS code:", error);
  }
  ```

  <Expandable title="Parameters">
    <ParamField body="payload" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ResetPasswordMfaPhoneChallengeContinueOptions">ResetPasswordMfaPhoneChallengeContinueOptions</a></span>}>
      Contains the delivery type (`sms` or `voice`) and any optional custom data.

      **Properties**

      <ParamField body="type" type="&#x22;sms&#x22; | &#x22;voice&#x22;">
        The delivery method selected by the user for receiving the verification code.

        * `sms`: Send the code via text message.
        * `voice`: Send the code via a voice call.
      </ParamField>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  Retrieves the array of transaction errors from the context, or an empty array if none exist.

  An array of error objects from the transaction context.
</ParamField>

<ParamField body="tryAnotherMethod" type="Promise<void>">
  Initiates the process for the user to select a different MFA authenticator.
  Corresponds to the 'Try Another Method' action in the OpenAPI definition (action: 'pick-authenticator').

  A promise resolving upon successful submission to the server.

  #### Throws

  If the form submission fails.

  ```typescript Example theme={null}
  const screen = new ResetPasswordMfaPhoneChallenge();
  try {
    // Assuming the current screen was for SMS
    await screen.tryAnotherMethod({ type: 'sms' });
    // Redirects to authenticator selection screen on success
  } catch (error) {
    console.error("Failed to switch MFA method:", error);
  }
  ```

  <Expandable title="Parameters">
    <ParamField body="payload" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ResetPasswordMfaPhoneChallengeTryAnotherMethodOptions">ResetPasswordMfaPhoneChallengeTryAnotherMethodOptions</a></span>}>
      Contains the *current* challenge type (`sms` or `voice`) as required by the API, and any optional custom data.

      **Properties**

      <ParamField body="type" type="&#x22;sms&#x22; | &#x22;voice&#x22;">
        The delivery method that was initially presented or selected on the current screen.
        This is required by the API endpoint to correctly process the 'pick-authenticator' action.

        * `sms`: Indicates the current screen was for SMS challenge.
        * `voice`: Indicates the current screen was for Voice challenge.
      </ParamField>
    </ParamField>
  </Expandable>
</ParamField>
