メインコンテンツへスキップ
ResetPassword クラスは、reset-password 画面の機能を実装します。この画面では、ユーザーは本人確認後に新しいパスワードを設定できます。
ACUL パスワードのリセット

コンストラクター

ResetPassword 画面マネージャーのインスタンスを生成します。
Example
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.resetPassword({
  'password-reset': 'Test@123!',
  're-enter-password': 'Test@123!',
});

プロパティ

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

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は、空の配列を返します。
resetPassword
Promise<void>
このメソッドは、ユーザーの新しいパスワードを送信して、パスワードリセットフローを完了します。
Example
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.resetPassword({
  'password-reset': 'Test@123!',
  're-enter-password': 'Test@123!',
});
メソッドパラメーター
このメソッドは、パスワード文字列をテナントのパスワードポリシーに照らして検証し、検証結果を返します。
Example
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.validatePassword('MyP@ssw0rd!');
メソッドパラメーター