メインコンテンツへスキップ
MfaCountryCodes クラスは、mfa-country-codes 画面の機能を提供します。この画面では、ユーザーが MFA の電話番号認証に使用する国コードを選択できます。
ACUL MFA 国コード

コンストラクター

MFA Country Codes 画面マネージャーのインスタンスを作成します。
Example
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';

const mfaCountryCodes = new MfaCountryCodes();
await mfaCountryCodes.selectCountryCode({
  country_code: 'US',
  phone_prefix: '+1',
});

プロパティ

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

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';
const mfaCountryCodes = new MfaCountryCodes();
mfaCountryCodes.changeLanguage({
  language: 'fr',
});
メソッドのパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーがない場合は空の配列を返します。
goBack
Promise<void>
このメソッドは、前の画面に戻ります。
Example
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';
const mfaCountryCodes = new MfaCountryCodes();
await mfaCountryCodes.goBack();
selectCountryCode
Promise<void>
このメソッドは、利用可能なオプションから国コードを選択します。
Example
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';

const mfaCountryCodes = new MfaCountryCodes();
await mfaCountryCodes.selectCountryCode({
  country_code: 'US',
  phone_prefix: '+1',
});
メソッドのパラメーター