メインコンテンツへスキップ
MfaWebAuthnError クラスは、mfa-webauthn-error 画面の機能を実装します。この画面は、WebAuthn の処理中にエラーが発生した場合に表示されます。
MfaWebAuthnError

コンストラクター

MFA WebAuthn エラー画面マネージャーのインスタンスを作成します:
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.tryAgain();

プロパティ

ブランディングテーマや各種設定など、ブランディングに関する構成を提供します。
mfa-webauthn-error 画面の idnamelogoUrl など、クライアントに関連する構成を提供します。
idname など、ユーザーの組織に関する情報を提供します。
認証フローにおける現在のプロンプトに関するデータが含まれます。
構成やコンテキストなど、mfa-webauthn-error 画面固有の詳細が含まれます。
id や関連するメタデータなど、テナントに関するデータが含まれます。
アクティブな識別子やフロー状態など、mfa-webauthn-error 画面に固有のトランザクションデータを提供します。
MFA の WebAuthn エラー処理時のユーザー入力など、SDK に渡される信頼できないデータを扱います。
usernameemailroles など、現在アクティブなユーザーの詳細です。

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
mfaWebAuthnError.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーがない場合は空の配列を返します。
noThanks
Promise<void>
このメソッドを使用すると、ユーザーは現在の WebAuthn 操作を拒否できます。
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.noThanks();
tryAgain
Promise<void>
このメソッドを使用すると、ユーザーは直前の WebAuthn 操作を再試行できます。
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.tryAgain();
tryAnotherMethod
Promise<void>
このメソッドを使用すると、ユーザーは別の MFA 方法を試すことができます。
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.tryAnotherMethod();
usePassword
Promise<void>
このメソッドを使用すると、ユーザーは WebAuthn ではなくパスワードを使用して認証できます。
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.usePassword();