> ## 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.

# MfaCountryCodes

Class implementing the mfa-country-codes screen functionality
This screen allows users to select a country code for MFA phone number verification

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

const mfaCountryCodes = new MfaCountryCodes();

// Get the available country codes and phone prefixes
const { screen } = mfaCountryCodes;
const { phone_prefixes } = screen.data
const {country_code, phone_prefix} = phone_prefixes[0]

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

## Constructors

<ParamField body="MfaCountryCodes" type="Constructor">
  Creates an instance of MfaCountryCodes screen manager
</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>} />

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

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

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

<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>} />

<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" />

## Methods

<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="goBack" type="Promise<void>">
  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();
  ```

  <Expandable title="Parameters">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/CustomOptions">CustomOptions</a></span>}>
      Optional custom options to include with the request
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="selectCountryCode" type="Promise<void>">
  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();

  // Get the available country codes and phone prefixes
  const { screen } = mfaCountryCodes;
  const { phone_prefixes } = screen.data
  const {country_code, phone_prefix} = phone_prefixes[0]

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

  <Expandable title="Parameters">
    <ParamField body="payload" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/SelectCountryCodeOptions">SelectCountryCodeOptions</a></span>}>
      The options containing the country code selection action

      **Properties**

      <ParamField body="country_code" type="string">
        The country code (e.g. 'US', 'GB')
      </ParamField>

      <ParamField body="phone_prefix" type="string">
        The phone prefix (e.g. '+1', '+44')
      </ParamField>
    </ParamField>
  </Expandable>
</ParamField>
