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

# MfaBeginEnrollOptions

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

MfaBeginEnrollOptions クラスは、`mfa-begin-enroll-options` 画面の機能を実装しています。この画面では、MFA認証要素の選択と登録を行います。

![ACUL MFA 登録開始オプション](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/62OEPAxQZojISBMcfMSSDl/7e72c9355ec129e03113121e308672a8/Screenshot_2025-02-18_at_13.40.51.png)

## コンストラクター

MFA登録開始オプション画面マネージャーのインスタンスを作成します:

```typescript Example theme={null}
import MfaBeginEnrollOptions from '@auth0/auth0-acul-js/mfa-begin-enroll-options';
const mfaBeginEnrollOptions = new MfaBeginEnrollOptions();
await mfaBeginEnrollOptions.enroll({
  action: 'push-notification'
});
```

## プロパティ

**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-begin-enroll-options` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の構成を提供します。

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

`mfa-begin-enroll-options` 画面向けに、`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` など) を提供します。

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

認証フローにおける現在の prompt に関するデータを含みます。

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

設定やコンテキストなど、`mfa-begin-enroll-options` 画面に固有の詳細を含みます。

**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)`

アクティブな identifier やフローの状態など、`mfa-begin-enroll-options` 画面向けの transaction 固有のデータを提供します。

**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 MfaBeginEnrollOptions from '@auth0/auth0-acul-js/mfa-begin-enroll-options';
const mfaBeginEnrollOptions = new MfaBeginEnrollOptions();
mfaBeginEnrollOptions.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'` に設定すると、選択した言語はセッション中維持されます。

**enroll** `Promise\<void\>`

このメソッドは、選択した認証要素で登録プロセスを続行します。

```typescript Example theme={null}
import MfaBeginEnrollOptions from '@auth0/auth0-acul-js/mfa-begin-enroll-options';

const mfaBeginEnrollOptions = new MfaBeginEnrollOptions();
await mfaBeginEnrollOptions.enroll({
  action: 'push-notification'
});
```

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

**パラメーター**

**options**

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

**action** `"push-notification" | "otp" | "sms" | "phone" | "voice" | "webauthn-roaming"` *required*

登録する認証要素を指定するアクションです。"push-notification"、"otp"、"sms"、"phone"、"voice"、または "webauthn-roaming" のいずれかを指定します。

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

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