メインコンテンツへスキップ
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.submitEmailChallenge({
    code: "<string>"
});

コンストラクター

EmailIdentifierChallenge
Constructor

プロパティ

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

メソッド

getErrors
コンテキストからトランザクションのエラー配列を取得します。エラーが存在しない場合は空の配列を返します。トランザクションコンテキストから取得されるエラーオブジェクトの配列です。
resendCode
Promise<void>
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';

const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.resendCode();
resendManager
ユーティリティ機能この画面用の、タイムアウト管理付き再送機能を取得します。startResend メソッドを持つ ResendControl オブジェクトです。
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';
  const handleStatusChange = (remainingSeconds, isDisabled) => {
    setDisabled(isDisabled);
    setRemaining(remainingSeconds);
  };

  const handleTimeout = () => {
    console.log('Timeout completed, resend is now available');
  };

  const { startResend } = emailChallenge.resendManager({
    timeoutSeconds: 15,
    onStatusChange: handleStatusChange,
    onTimeout: handleTimeout
  });
  
  // ユーザーが再送ボタンをクリックしたときに startResend を呼び出します
  await startResend();
returnToPrevious
Promise<void>
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';

const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.returnToPrevious();
submitEmailChallenge
Promise<void>
Example
import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';

const emailIdentifierChallenge = new EmailIdentifierChallenge();
emailIdentifierChallenge.submitEmailChallenge({
    code: "<string>"
});