メインコンテンツへスキップ
EmailIdentifierChallenge クラスは、email-identifier-challenge 画面の機能を実装します。この画面では、本人確認のためにメールアドレスに送信された確認コードを入力するようユーザーに求めます。
ACUL Email Identifier Challenge

コンストラクター

EmailIdentifierChallenge画面マネージャーのインスタンスを作成します:
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
await emailIdentifierChallengeManager.submitEmailChallenge({ code: 'your-code' });

プロパティ

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

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
emailIdentifierChallengeManager.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーがない場合は空の配列を返します。
resendCode
Promise<void>
このメソッドは、確認コードをユーザーのメールアドレスに再送します。
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
await emailIdentifierChallengeManager.resendCode();
resendManager
このメソッドは、タイムアウト管理付きの再送機能を提供します。再送を実行する startResend() メソッドを持つ ResendControl オブジェクトを返し、ユーザーが再送できるようになるまでクールダウン期間を適用します。
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
const { startResend } = emailIdentifierChallengeManager.resendManager({
  timeoutSeconds: 15,
});
await startResend();
メソッドパラメーター
returnToPrevious
Promise<void>
このメソッドは、ユーザーを前の画面に戻します。
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
await emailIdentifierChallengeManager.returnToPrevious();
submitEmailChallenge
Promise<void>
このメソッドは、チャレンジを完了するためにメール確認コードを送信します。
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallengeManager = new EmailIdentifierChallenge();
await emailIdentifierChallengeManager.submitEmailChallenge({ code: 'your-code' });
メソッドパラメーター