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

# MfaCountryCodes

> Universal Login の `mfa-country-codes` 画面をカスタマイズするために使用できる、すべてのプロパティとメソッドについて説明します。

MfaCountryCodes クラスは、`mfa-country-codes` 画面の機能を実装します。この画面では、MFA の電話番号確認に使用する国番号をユーザーが選択できます。

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/translations/c0RQ9V0YAcT0-8l5/docs/images/cdy7uua7fh8z/7hp8LeL9cbS3nbxw8wTuqK/3c862b1c47ae18fb43f22f55ea4d695a/Screenshot_2025-02-19_at_13.23.44.png?fit=max&auto=format&n=c0RQ9V0YAcT0-8l5&q=85&s=b5dfc5e3ff13a2800b847f06cb53bc91" alt="ACUL MFA 国番号" width="444" height="589" data-path="docs/images/cdy7uua7fh8z/7hp8LeL9cbS3nbxw8wTuqK/3c862b1c47ae18fb43f22f55ea4d695a/Screenshot_2025-02-19_at_13.23.44.png" />
</Frame>

<div id="constructors">
  ## コンストラクタ
</div>

MFA Country Codes画面マネージャーのインスタンスを作成します。

```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',
});
```

<div id="properties">
  ## プロパティ
</div>

<ParamField body="branding" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  ブランドテーマや各種設定など、ブランディングに関する構成を提供します。
</ParamField>

<ParamField body="client" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  `mfa-country-codes` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の構成を提供します。
</ParamField>

<ParamField body="organization" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  `id` や `name` など、ユーザーの Organization に関する情報を提供します。
</ParamField>

<ParamField body="prompt" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  認証フローにおける現在のプロンプトに関するデータが含まれます。
</ParamField>

<ParamField body="screen" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnMfaCountryCodes">ScreenMembersOnMfaCountryCodes</a></span>}>
  設定やコンテキストなど、`mfa-country-codes` 画面に固有の詳細が含まれます。
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>}>
  `id` や関連メタデータなど、テナントに関するデータが含まれます。
</ParamField>

<ParamField body="transaction" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  アクティブな識別子やフローの状態など、`mfa-country-codes` 画面に固有のトランザクションデータを提供します。
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  MFA 国番号の選択時のユーザー入力など、SDK に渡される未検証データを扱います。
</ParamField>

<ParamField body="user" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>}>
  `username`、`email`、`roles` など、現在アクティブなユーザーの詳細が含まれます。
</ParamField>

<div id="methods">
  ## メソッド
</div>

<ParamField body="changeLanguage" type="Promise<void>">
  このメソッドは、Universal Login ページの表示言語を変更します。

  ```typescript Example theme={null}
  import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';
  const mfaCountryCodes = new MfaCountryCodes();
  mfaCountryCodes.changeLanguage({
    language: 'fr',
  });
  ```

  **メソッドパラメーター**

  <Expandable title="パラメーター">
    <ParamField body="options">
      [LanguageChangeOptions](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions)。
    </ParamField>

    <ParamField body="language" type="string" required>
      設定する言語のロケールコードです (例: `'en'`、`'fr'`、`'es'`) 。
    </ParamField>

    <ParamField body="persist?" type="&#x22;session&#x22;">
      `'session'` に設定すると、選択した言語がセッション中保持されます。
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は空の配列を返します。
</ParamField>

<ParamField body="goBack" type="Promise<void>">
  このメソッドは、前の画面に戻ります。

  ```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>">
  このメソッドは、利用可能な選択肢から国番号を選択します。

  ```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',
  });
  ```

  **メソッドパラメーター**

  <Expandable title="パラメーター">
    <ParamField body="options">
      [SelectCountryCodeOptions](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/SelectCountryCodeOptions)。
    </ParamField>

    <ParamField body="country_code" type="string" required>
      国番号です (例: `'US'`、`'GB'`) 。
    </ParamField>

    <ParamField body="phone_prefix" type="string" required>
      電話番号のプレフィックスです (例: `'+1'`、`'+44'`) 。
    </ParamField>
  </Expandable>
</ParamField>
