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

# MfaCountryCodes

> Describes all the properties and methods available to customize the Universal Login `mfa-country-codes` screen.

The MfaCountryCodes class implements the `mfa-country-codes` screen functionality. This screen allows users to select a country code for MFA phone number verification.

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/docs-dev-actions-triggers-prototype/nRTYX19FsgfcTLla/docs/images/cdy7uua7fh8z/7hp8LeL9cbS3nbxw8wTuqK/3c862b1c47ae18fb43f22f55ea4d695a/Screenshot_2025-02-19_at_13.23.44.png?fit=max&auto=format&n=nRTYX19FsgfcTLla&q=85&s=fc0bcf8002ca85e607ac42668a1dd739" alt="ACUL MFA Country Codes" width="444" height="589" data-path="docs/images/cdy7uua7fh8z/7hp8LeL9cbS3nbxw8wTuqK/3c862b1c47ae18fb43f22f55ea4d695a/Screenshot_2025-02-19_at_13.23.44.png" />
</Frame>

## Constructors

Create an instance of MFA Country Codes screen manager:

```typescript Example theme={null}
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';

const mfaCountryCodes = new MfaCountryCodes();
await mfaCountryCodes.selectCountryCode({
  country_code: 'US',
  phone_prefix: '+1',
});
```

## 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 `mfa-country-codes` 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/ScreenMembersOnMfaCountryCodes">ScreenMembersOnMfaCountryCodes</a></span>}>
  Contains details specific to the `mfa-country-codes` 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 `mfa-country-codes` 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 MFA country code selection.
</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 MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';
  const mfaCountryCodes = new MfaCountryCodes();
  mfaCountryCodes.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="goBack" type="Promise<void>">
  This method navigates back to the previous screen.

  ```typescript Example theme={null}
  import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';
  const mfaCountryCodes = new MfaCountryCodes();
  await mfaCountryCodes.goBack();
  ```
</ParamField>

<ParamField body="selectCountryCode" type="Promise<void>">
  This method selects a country code from the available options.

  ```typescript Example theme={null}
  import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';

  const mfaCountryCodes = new MfaCountryCodes();
  await mfaCountryCodes.selectCountryCode({
    country_code: 'US',
    phone_prefix: '+1',
  });
  ```

  **Method Parameters**

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

    <ParamField body="country_code" type="string" required>
      The country code (for example, `'US'`, `'GB'`).
    </ParamField>

    <ParamField body="phone_prefix" type="string" required>
      The phone prefix (for example, `'+1'`, `'+44'`).
    </ParamField>
  </Expandable>
</ParamField>
