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

# ResetPasswordMfaWebAuthnRoamingChallenge

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

ResetPasswordMfaWebAuthnRoamingChallenge クラスは、`reset-password-mfa-webauthn-roaming-challenge` 画面の機能を提供します。この画面では、パスワードリセットフロー中の MFA ステップの一環として、ローミング セキュリティキー (FIDO2 USB キーなど) を使ってアイデンティティを確認するようユーザーに求めます。

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/oisvWlYTRgpQ030322WZk/23921a030cdb6f1cf7b147da5315ea8e/Screenshot_2025-05-28_at_13.12.43.png)

## コンストラクター

ResetPasswordMfaWebAuthnRoamingChallenge画面マネージャーのインスタンスを作成します:

```typescript Example theme={null}
import ResetPasswordMfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';
const resetPasswordMfaWebAuthnRoamingChallengeManager = new ResetPasswordMfaWebAuthnRoamingChallenge();
try {
  await resetPasswordMfaWebAuthnRoamingChallengeManager.useSecurityKey({
    rememberDevice: true,
  });
} catch (error) {
  if (error instanceof DOMException) {
    await resetPasswordMfaWebAuthnRoamingChallengeManager.showError({
      error: { name: error.name, message: error.message },
    });
  }
}
```

## プロパティ

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

ブランディングテーマや設定など、ブランディング関連の設定を提供します。

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

`reset-password-mfa-webauthn-roaming-challenge` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の設定を提供します。

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

`reset-password-mfa-webauthn-roaming-challenge` 画面向けに、電話番号入力用の国コードデータ (`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** `[ScreenMembersOnResetPasswordMfaWebAuthnRoamingChallenge](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnResetPasswordMfaWebAuthnRoamingChallenge)`

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

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

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

**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 ResetPasswordMfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';
const resetPasswordMfaWebAuthnRoamingChallengeManager = new ResetPasswordMfaWebAuthnRoamingChallenge();
resetPasswordMfaWebAuthnRoamingChallengeManager.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)[]`

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

**showError** `Promise\<void\>`

このメソッドは、ユーザーによるキャンセル (`NotAllowedError`) や `navigator.credentials.get()` のタイムアウトなど、ブラウザー側の WebAuthn エラーを Auth0 に報告します。

```typescript Example theme={null}
import ResetPasswordMfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';
const resetPasswordMfaWebAuthnRoamingChallengeManager = new ResetPasswordMfaWebAuthnRoamingChallenge();
await resetPasswordMfaWebAuthnRoamingChallengeManager.showError({
  error: { name: error.name, message: error.message },
});
```

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

**パラメーター**

**options**

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

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

報告対象となる、WebAuthn API (`navigator.credentials.get()`) から返される error object。

**name** `string` *required*

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

**message** `string` *required*

問題の内容を示すエラーメッセージ。

**rememberDevice?** `boolean`

`true` の場合、エラーの報告時にデバイス記憶の設定も保持します。

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

このメソッドにより、ユーザーはチャレンジを完了するために別のMFA方式を選択できます。

```typescript Example theme={null}
import ResetPasswordMfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';
const resetPasswordMfaWebAuthnRoamingChallengeManager = new ResetPasswordMfaWebAuthnRoamingChallenge();
await resetPasswordMfaWebAuthnRoamingChallengeManager.tryAnotherMethod();
```

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

**パラメーター**

**options**

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

**rememberDevice?** `boolean`

`true` の場合、方式を切り替える際にデバイス記憶の設定を保持します。

**useSecurityKey** `Promise\<void\>`

このメソッドは WebAuthn セキュリティキーのチャレンジを開始し、生成された認証情報を送信して、パスワードリセット フロー中の MFA ステップを完了します。ブラウザーが `DOMException` (ユーザーによるキャンセルなど) をスローした場合は、エラーを catch して `showError` を呼び出し、Auth0 に通知してください。

```typescript Example theme={null}
import ResetPasswordMfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';
const resetPasswordMfaWebAuthnRoamingChallengeManager = new ResetPasswordMfaWebAuthnRoamingChallenge();
try {
  await resetPasswordMfaWebAuthnRoamingChallengeManager.useSecurityKey({
    rememberDevice: true,
  });
} catch (error) {
  if (error instanceof DOMException) {
    await resetPasswordMfaWebAuthnRoamingChallengeManager.showError({
      error: { name: error.name, message: error.message },
    });
  }
}
```

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

**パラメーター**

**options**

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

**rememberDevice?** `boolean`

`true` の場合、このデバイスを信頼済みとしてマークし、以後このデバイスでは MFA を再度求められないようにします。
