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

# MfaCountryCodes

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

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

![ACUL MFA 国番号](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/7hp8LeL9cbS3nbxw8wTuqK/3c862b1c47ae18fb43f22f55ea4d695a/Screenshot_2025-02-19_at_13.23.44.png)

## コンストラクタ

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

## プロパティ

**branding** `[BrandingMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers)`

ブランドテーマや各種設定など、ブランディングに関する構成を提供します。

**client** `[ClientMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ClientMembers)`

`mfa-country-codes` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の構成を提供します。

**countryCodes** `[CountryCodesMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/CountryCodesMembers)`

`mfa-country-codes` 画面向けに、`available` や `recommended` など、電話番号入力用の国番号データを提供します。

**experiment** `[ExperimentMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ExperimentMembers)`

この画面で有効な [Experiment Center](/docs/docs/ja-jp/customize/experiment-center) の実験です。有効な実験がない場合 (または画面が `context_configuration` を介してオプトインしていない場合) は `null` です。

**organization** `[OrganizationMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers)`

`id` や `name` など、ユーザーの Organization に関する情報を提供します。

**prompt** `[PromptMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PromptMembers)`

認証フローにおける現在のプロンプトに関するデータが含まれます。

**screen** `[ScreenMembersOnMfaCountryCodes](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnMfaCountryCodes)`

設定やコンテキストなど、`mfa-country-codes` 画面に固有の詳細が含まれます。

**tenant** `[TenantMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TenantMembers)`

`id` や関連メタデータなど、テナントに関するデータが含まれます。

**transaction** `[TransactionMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers)`

アクティブな識別子やフローの状態など、`mfa-country-codes` 画面に固有のトランザクションデータを提供します。

**untrustedData** `[UntrustedDataMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers)`

MFA 国番号の選択時のユーザー入力など、SDK に渡される未検証データを扱います。

**user** `[UserMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UserMembers)`

`username`、`email`、`roles` など、現在アクティブなユーザーの詳細が含まれます。

## メソッド

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

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

**パラメーター**

**options**

[LanguageChangeOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions)。

**language** `string` *required*

設定する言語のロケールコードです (例: `'en'`、`'fr'`、`'es'`) 。

**persist?** `"session"`

`'session'` に設定すると、選択した言語がセッション中保持されます。

**getErrors** `[Error](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/Error)[]`

このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は空の配列を返します。

**goBack** `Promise\<void\>`

このメソッドは、前の画面に戻ります。

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

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

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

**パラメーター**

**options**

[SelectCountryCodeOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/SelectCountryCodeOptions)。

**country\_code** `string` *required*

国番号です (例: `'US'`、`'GB'`) 。

**phone\_prefix** `string` *required*

電話番号のプレフィックスです (例: `'+1'`、`'+44'`) 。
