メインコンテンツへスキップ
InterstitialCaptcha クラスは、interstitial-captcha 画面の機能を実装します。この画面では、認証フロー中にユーザーに キャプチャ の完了を求めます。

コンストラクター

InterstitialCaptcha画面マネージャーのインスタンスを作成します。
Example
import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';
const interstitialCaptchaManager = new InterstitialCaptcha();
await interstitialCaptchaManager.submitCaptcha({ captcha: 'captchaValue' });

プロパティ

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

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';
const interstitialCaptchaManager = new InterstitialCaptcha();
interstitialCaptchaManager.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は、空の配列を返します。
submitCaptcha
Promise<void>
このメソッドは、認証フローを続行するためにキャプチャ応答を送信します。
Example
import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';
const interstitialCaptchaManager = new InterstitialCaptcha();
await interstitialCaptchaManager.submitCaptcha({ captcha: 'captchaValue' });
メソッドパラメーター