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

# MfaLoginOptions

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

MfaLoginOptions クラスは、`mfa-login-options` 画面の機能を実装します。この画面では、ユーザーはログイン時に使用する MFA 認証要素を選択できます。

![ACUL MFAログインオプション](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/4TnKlKLKFyAdX6dcOvVlXw/ebd248e8aabf78d20ba1ffec746b4404/Screenshot_2025-02-20_at_17.25.02.png)

## コンストラクター

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

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

const mfaLoginOptions = new MfaLoginOptions();
await mfaLoginOptions.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-login-options` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の構成情報を提供します。

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

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

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

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

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

設定やコンテキストなど、`mfa-login-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)`

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

**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 MfaLoginOptions from '@auth0/auth0-acul-js/mfa-login-options';
const mfaLoginOptions = new MfaLoginOptions();
mfaLoginOptions.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\>`

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

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

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

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

**パラメーター**

**options**

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

**action** `"push-notification" | "otp" | "sms" | "phone" | "voice" | "email" | "recovery-code" | "webauthn-roaming" | "webauthn-platform" | "duo"` *required*

登録する認証要素を指定する値です。指定できるのは "push-notification"、"otp"、"sms"、"phone"、"voice"、"email"、"recovery-code"、"webauthn-roaming"、"webauthn-platform"、"duo" のいずれかです。

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

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

**returnToPrevious** `Promise\<void\>`

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

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

const mfaLoginOptions = new MfaLoginOptions();
await mfaLoginOptions.returnToPrevious();
```
