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

# EmailIdentifierChallenge

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

The EmailIdentifierChallenge class implements the `email-identifier-challenge` screen functionality. This screen prompts the user to enter a verification code sent to their email address to confirm their identity.

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/RjB12i6aOVmBONJv/docs/images/cdy7uua7fh8z/ACUL/Screenshot_2026-04-22_at_18.14.17.png?fit=max&auto=format&n=RjB12i6aOVmBONJv&q=85&s=c1f393b5ef3b3e4d942eaab8879d874f" alt="ACUL Email Identifier Challenge" width="436" height="557" data-path="docs/images/cdy7uua7fh8z/ACUL/Screenshot_2026-04-22_at_18.14.17.png" />
</Frame>

## Constructors

Create an instance of EmailIdentifierChallenge screen manager:

```typescript Example theme={null}
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
await emailIdentifierChallengeManager.submitEmailChallenge({ code: 'your-code' });
```

## 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 `email-identifier-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/ScreenMembersOnEmailIdentifierChallenge">ScreenMembersOnEmailIdentifierChallenge</a></span>}>
  Contains details specific to the `email-identifier-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 `email-identifier-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 email 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 EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
  const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
  emailIdentifierChallengeManager.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="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 EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
  const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
  await emailIdentifierChallengeManager.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. It returns a [`ResendControl`](/docs/libraries/acul/js-sdk/Screens/interfaces/ResendControl) object with a `startResend()` method that triggers the resend and enforces a cooldown period before the user can resend again.

  ```typescript Example theme={null}
  import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
  const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
  const { startResend } = emailIdentifierChallengeManager.resendManager({
    timeoutSeconds: 15,
  });
  await 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 cooldown duration in seconds before the user can resend the code again.
    </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 invoked when the cooldown expires and resend becomes available again.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="returnToPrevious" type="Promise<void>">
  This method navigates the user back to the previous screen.

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

<ParamField body="submitEmailChallenge" type="Promise<void>">
  This method submits the email verification code to complete the challenge.

  ```typescript Example theme={null}
  import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
  const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
  await emailIdentifierChallengeManager.submitEmailChallenge({ code: 'your-code' });
  ```

  **Method Parameters**

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

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

    <ParamField body="captcha?" type="string">
      The CAPTCHA response token, if CAPTCHA is enabled for this tenant.
    </ParamField>
  </Expandable>
</ParamField>
