メインコンテンツへスキップ
reset-password-mfa-push-challenge-push 画面の機能を表すクラスです。 この画面は、パスワードリセット中にユーザーのデバイスにプッシュ通知が送信されると表示されます。
Example
import ResetPasswordMfaPushChallengePush from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';

const resetPasswordMfaPushChallengePush = new ResetPasswordMfaPushChallengePush();
await resetPasswordMfaPushChallengePush.continue();

コンストラクター

ResetPasswordMfaPushChallengePush
Constructor

プロパティ

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

メソッド

continue
Promise<void>
プッシュ通知チャレンジを続行します。
Example
import ResetPasswordMfaPushChallengePush from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';

const resetPasswordMfaPushChallengePush = new ResetPasswordMfaPushChallengePush();
await resetPasswordMfaPushChallengePush.continue();
enterCodeManually
Promise<void>
検証コードの手動入力に切り替えます。
Example
import ResetPasswordMfaPushChallengePush from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';

const resetPasswordMfaPushChallengePush = new ResetPasswordMfaPushChallengePush();
await resetPasswordMfaPushChallengePush.enterCodeManually();
getErrors
コンテキストからトランザクションのエラー配列を取得します。存在しない場合は空の配列を返します。トランザクションコンテキストからのエラーオブジェクトの配列です。
pollingManager
Utility FeatureMFA(多要素認証)プッシュチャレンジのポーリングを開始および管理します。指定された間隔で MFA(多要素認証)プッシュチャレンジのエンドポイントを チャレンジが承認されるかエラーが発生するまで繰り返しチェックする ポーリングセッションを作成します。 承認条件が満たされると、指定された onCompleted コールバックが呼び出され、 ポーリングは自動的に停止します。返された MfaPushPollingControl を使用して、 いつでもポーリング処理の開始、停止、ステータスの確認を行うことができます。次の機能を提供する MfaPushPollingControl のインスタンスです。
  • startPolling() — ポーリングを開始または再開します。
  • stopPolling() — ポーリングを直ちにキャンセルします。
  • isRunning() — 現在ポーリングがアクティブかどうかを示します。
Example
// プッシュチャレンジが承認されるまで 5 秒ごとにポーリングを開始
const control = mfaPushChallengePush.pollingManager({
  intervalMs: 5000,
  onCompleted: () => mfaPushChallengePush.continue(),
  onError: (error) => console.error('Polling error:', error),
});

// 後で必要に応じてポーリングをキャンセル
control.stopPolling();

備考

  • HTTP 429(レート制限)レスポンスは内部で処理されます。ポーリングは、再試行前にレート制限がリセットされるまで自動的に待機します。
  • startPolling() は複数回呼び出しても安全です。すでに実行中の場合は何も影響しません。
resendPushNotification
Promise<void>
プッシュ通知を再送信します
Example
import ResetPasswordMfaPushChallengePush from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';

const resetPasswordMfaPushChallengePush = new ResetPasswordMfaPushChallengePush();
await resetPasswordMfaPushChallengePush.resendPushNotification();
tryAnotherMethod
Promise<void>
別の認証方法を試します
Example
import ResetPasswordMfaPushChallengePush from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';

const resetPasswordMfaPushChallengePush = new ResetPasswordMfaPushChallengePush();
await resetPasswordMfaPushChallengePush.tryAnotherMethod();