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

# MfaWebAuthnPlatformEnrollment

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

MfaWebAuthnPlatformEnrollment クラスは、`mfa-webauthn-platform-enrollment` 画面の機能を提供します。この画面は、ユーザーが Touch ID や Face ID などのプラットフォーム認証器を登録する必要がある場合に表示されます。

![MfaWebAuthnPlatformEnrollment](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/6hWi1hV5cPw336LB0JHYvM/7833f62a4339322bc55744c0477c4787/Screenshot_2025-05-27_at_21.04.27.png)

## コンストラクタ

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

```typescript Example theme={null}
import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';

const mfaWebAuthnPlatformEnrollment = new MfaWebAuthnPlatformEnrollment();
await mfaWebAuthnPlatformEnrollment.submitPasskeyCredential();
```

## プロパティ

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

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

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

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

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

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

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

この画面で実行中の [Experiment Center](/docs/docs/ja-jp/customize/experiment-center) の experiment です。アクティブな experiment がない場合 (または画面が `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** `[ScreenMembersOnMfaWebAuthnPlatformEnrollment](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnMfaWebAuthnPlatformEnrollment)`

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

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

`id` や関連するメタデータなど、tenant に関するデータを含みます。

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

アクティブな identifier やフローの state など、`mfa-webauthn-platform-enrollment` 画面に関するトランザクション固有のデータを提供します。

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

MFA WebAuthn プラットフォーム登録 中のユーザー入力など、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 MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';

const mfaWebAuthnPlatformEnrollment = new MfaWebAuthnPlatformEnrollment();
mfaWebAuthnPlatformEnrollment.changeLanguage({
  language: 'fr',
});
```

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

**パラメータ**

**options**

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

**language** `string` *required*

使用する言語の locale コード (例: `'en'`、`'fr'`、`'es'`) 。

**persist?** `"session"`

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

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

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

**refuseEnrollmentOnThisDevice** `Promise\<void\>`

このメソッドでは、ユーザーは現在のデバイスでの WebAuthn プラットフォーム登録を拒否できます。

```typescript Example theme={null}
import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';

const mfaWebAuthnPlatformEnrollment = new MfaWebAuthnPlatformEnrollment();
await mfaWebAuthnPlatformEnrollment.refuseEnrollmentOnThisDevice();
```

**reportBrowserError** `Promise\<void\>`

このメソッドは、WebAuthn の `navigator.credentials.create()` 操作中に発生したブラウザー側エラーを報告します。

```typescript Example theme={null}
import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';

const mfaWebAuthnPlatformEnrollment = new MfaWebAuthnPlatformEnrollment();
await mfaWebAuthnPlatformEnrollment.reportBrowserError({
  error: { name: 'NotAllowedError', message: 'The operation was not allowed.' },
});
```

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

**パラメータ**

**options**

[CustomOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/CustomOptions).

**error** `[WebAuthnErrorDetails](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/WebAuthnErrorDetails)` *required*

報告する WebAuthn API (`navigator.credentials.create()`) のエラーオブジェクト。

**name** `string` *required*

エラー名 (例: `'NotAllowedError'`) 。

**message** `string` *required*

問題の内容を説明するエラーメッセージ。

**snoozeEnrollment** `Promise\<void\>`

このメソッドでは、ユーザーは WebAuthn プラットフォーム登録を後回しにできます。

```typescript Example theme={null}
import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';

const mfaWebAuthnPlatformEnrollment = new MfaWebAuthnPlatformEnrollment();
await mfaWebAuthnPlatformEnrollment.snoozeEnrollment();
```

**submitPasskeyCredential** `Promise\<void\>`

このメソッドは、WebAuthn プラットフォーム資格情報の作成を開始し、生成された資格情報をサーバーに送信します。

```typescript Example theme={null}
import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';

const mfaWebAuthnPlatformEnrollment = new MfaWebAuthnPlatformEnrollment();
await mfaWebAuthnPlatformEnrollment.submitPasskeyCredential();
```

**tryAnotherMethod** `Promise\<void\>`

このメソッドでは、ユーザーは WebAuthn プラットフォーム登録をやめて、別の MFA 方法を選択できます。

```typescript Example theme={null}
import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';

const mfaWebAuthnPlatformEnrollment = new MfaWebAuthnPlatformEnrollment();
await mfaWebAuthnPlatformEnrollment.tryAnotherMethod();
```
