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

# ResetPasswordMfaEmailChallenge

> Describes all the properties and methods available to customize the Universal Login `reset-password-mfa-email-challenge` screen.

The ResetPasswordMfaEmailChallenge class implements the `reset-password-mfa-email-challenge` screen functionality. This screen prompts the user to enter the verification code sent to their email address as part of the MFA step during a password reset flow.

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-actions-triggers-prototype/docs/images/cdy7uua7fh8z/3syDeetKM505pFoJ1ND8M3/a8d25ad3d0ba2af508af9a9aa0d5d25e/Screenshot_2025-03-26_at_09.16.08.png" alt="" />
</Frame>

## Constructors

Create an instance of ResetPasswordMfaEmailChallenge screen manager:

```typescript Example theme={null}
import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';
const resetPasswordMfaEmailChallengeManager = new ResetPasswordMfaEmailChallenge();
await resetPasswordMfaEmailChallengeManager.continue({
  code: '123456',
});
```

## Properties

<ParamField body="branding" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  Provides branding-related configurations, such as branding theme and settings.
</ParamField>

<ParamField body="client" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  Provides client-related configurations, such as `id`, `name`, and `logoUrl`, for the `reset-password-mfa-email-challenge` screen.
</ParamField>

<ParamField body="organization" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  Provides information about the user's Organization, such as `id` and `name`.
</ParamField>

<ParamField body="prompt" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  Contains data about the current prompt in the authentication flow.
</ParamField>

<ParamField body="screen" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnResetPasswordMfaEmailChallenge">ScreenMembersOnResetPasswordMfaEmailChallenge</a></span>}>
  Contains details specific to the `reset-password-mfa-email-challenge` screen, including its configuration and context.
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>}>
  Contains data related to the tenant, such as `id` and associated metadata.
</ParamField>

<ParamField body="transaction" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  Provides transaction-specific data for the `reset-password-mfa-email-challenge` screen, such as active identifiers and flow states.
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  Handles untrusted data passed to the SDK, such as user input during the MFA challenge flow.
</ParamField>

<ParamField body="user" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>}>
  Details of the active user, including `username`, `email`, and `roles`.
</ParamField>

## Methods

<ParamField body="changeLanguage" type="Promise<void>">
  This method changes the display language of the Universal Login page.

  ```typescript Example theme={null}
  import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';
  const resetPasswordMfaEmailChallengeManager = new ResetPasswordMfaEmailChallenge();
  resetPasswordMfaEmailChallengeManager.changeLanguage({
    language: 'fr',
  });
  ```

  **Method Parameters**

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

    <ParamField body="language" type="string" required>
      The locale code for the desired language (for example, `'en'`, `'fr'`, `'es'`).
    </ParamField>

    <ParamField body="persist?" type="&#x22;session&#x22;">
      When set to `'session'`, the selected language persists for the duration of the session.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="continue" type="Promise<void>">
  This method submits the email verification code to continue the MFA challenge during the password reset flow.

  ```typescript Example theme={null}
  import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';
  const resetPasswordMfaEmailChallengeManager = new ResetPasswordMfaEmailChallenge();
  await resetPasswordMfaEmailChallengeManager.continue({
    code: '123456',
  });
  ```

  **Method Parameters**

  <Expandable title="Parameters">
    <ParamField body="options">
      [ContinueOptions](/docs/libraries/acul/js-sdk/Screens/interfaces/ContinueOptions).
    </ParamField>

    <ParamField body="code" type="string" required>
      The verification code sent to the user's email address.
    </ParamField>

    <ParamField body="rememberDevice?" type="boolean">
      Whether to remember the device for future MFA challenges.
    </ParamField>
  </Expandable>
</ParamField>

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

<ParamField body="resendCode" type="Promise<void>">
  This method resends the verification code to the user's email address.

  ```typescript Example theme={null}
  import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';
  const resetPasswordMfaEmailChallengeManager = new ResetPasswordMfaEmailChallenge();
  await resetPasswordMfaEmailChallengeManager.resendCode();
  ```
</ParamField>

<ParamField body="resendManager" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ResendControl">ResendControl</a></span>}>
  This method provides resend functionality with timeout management for the `reset-password-mfa-email-challenge` screen.

  ```typescript Example theme={null}
  import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';
  const resetPasswordMfaEmailChallengeManager = new ResetPasswordMfaEmailChallenge();
  const { startResend } = resetPasswordMfaEmailChallengeManager.resendManager({
    timeoutSeconds: 15,
    onStatusChange: (remainingSeconds, isDisabled) => {
      console.log(`Resend available in ${remainingSeconds}s, disabled: ${isDisabled}`);
    },
    onTimeout: () => {
      console.log('Resend is now available');
    }
  });

  // Call startResend when user clicks resend button
  startResend();
  ```

  **Method Parameters**

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

    <ParamField body="timeoutSeconds?" type="number">
      The number of seconds to wait before allowing the user to resend the code.
    </ParamField>

    <ParamField body="onStatusChange?" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/type-aliases/OnStatusChangeCallback">OnStatusChangeCallback</a></span>}>
      Callback invoked whenever the resend status changes, it returns the remaining seconds and if the resend functionality is currently disabled.
    </ParamField>

    <ParamField body="onTimeout?" type="void">
      Callback fired when the timeout expires and the resend button becomes available.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="tryAnotherMethod" type="Promise<void>">
  This method allows the user to select a different MFA method to complete the challenge.

  ```typescript Example theme={null}
  import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';
  const resetPasswordMfaEmailChallengeManager = new ResetPasswordMfaEmailChallenge();
  await resetPasswordMfaEmailChallengeManager.tryAnotherMethod();
  ```
</ParamField>
