メインコンテンツへスキップ
PhoneIdentifierEnrollment クラスは、phone-identifier-enrollment 画面の機能を実装します。この画面では、ユーザーは希望する確認方法の配信方法を選択して、電話番号を識別子として登録できます。
PhoneIdentifierEnrollment

コンストラクター

PhoneIdentifierEnrollment画面マネージャーのインスタンスを作成します。
Example
import PhoneIdentifierEnrollment from '@auth0/auth0-acul-js/phone-identifier-enrollment';
const phoneIdentifierEnrollmentManager = new PhoneIdentifierEnrollment();
await phoneIdentifierEnrollmentManager.continuePhoneEnrollment({
  type: 'voice',
});

プロパティ

ブランディングのテーマや設定など、ブランディング関連の構成を提供します。
phone-identifier-enrollment 画面用のクライアント関連の構成 (idnamelogoUrl など) を提供します。
idname など、ユーザーの組織に関する情報を提供します。
認証フローにおける現在のプロンプトに関するデータを含みます。
設定やコンテキストなど、phone-identifier-enrollment 画面固有の詳細を含みます。
id や関連するメタデータなど、テナントに関連するデータを含みます。
アクティブな識別子やフローの状態など、phone-identifier-enrollment 画面に関するトランザクション固有のデータを提供します。
電話番号の登録フローでのユーザー入力など、SDK に渡される信頼できないデータを扱います。
usernameemailroles など、現在のユーザーの詳細です。

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import PhoneIdentifierEnrollment from '@auth0/auth0-acul-js/phone-identifier-enrollment';
const phoneIdentifierEnrollmentManager = new PhoneIdentifierEnrollment();
phoneIdentifierEnrollmentManager.changeLanguage({
  language: 'fr',
});
メソッド パラメーター
continuePhoneEnrollment
Promise<void>
このメソッドは、選択した配信方法で電話番号の登録を続行します。
Example
import PhoneIdentifierEnrollment from '@auth0/auth0-acul-js/phone-identifier-enrollment';
const phoneIdentifierEnrollmentManager = new PhoneIdentifierEnrollment();
await phoneIdentifierEnrollmentManager.continuePhoneEnrollment({
  type: 'voice',
});
メソッド パラメーター
getErrors
このメソッドは、コンテキストからトランザクション エラーの配列を取得します。エラーがない場合は空の配列を返します。
returnToPrevious
Promise<void>
このメソッドは、前の画面に戻ります。
Example
import PhoneIdentifierEnrollment from '@auth0/auth0-acul-js/phone-identifier-enrollment';
const phoneIdentifierEnrollmentManager = new PhoneIdentifierEnrollment();
await phoneIdentifierEnrollmentManager.returnToPrevious();