メインコンテンツへスキップ
SignupId クラスは、signup-id 画面の機能を実装します。この画面では、ユーザーの識別子を入力します。
Signup ID

コンストラクター

SignupId 画面マネージャーのインスタンスを作成します:
Example
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.signup({
  email: 'test@example.com',
});

プロパティ

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

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
federatedSignup
Promise<void>
このメソッドは、Google や Facebook などの各種ソーシャル ID を使用したサインアップを処理します。
Example
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.federatedSignup({
  connection: 'google-oauth2',
});
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は空の配列を返します。戻り値は、トランザクションコンテキスト内のエラーオブジェクトの配列です。
getSignupIdentifiers
Identifier[] | null
このメソッドは、signup-id フォームで有効な識別子の一覧を返します。各識別子には、トランザクション設定に基づいて必須か任意かが示されます。戻り値は識別子オブジェクトの配列です (例: email、phone、username) 。
Example
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
const identifiers = signupIdManager.getSignupIdentifiers();
// [{ type: 'email', required: true }, { type: 'username', required: false }]
pickCountryCode
Promise<void>
このメソッドはユーザーを国番号の選択リストにリダイレクトし、そこで電話番号の国番号プレフィックスを更新できるようにします。
Example
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.pickCountryCode();
signup
Promise<void>
このメソッドは signup-id に関連する設定に基づいて処理を行います。さまざまな識別子を使用して新しいユーザーをサインアップできます。
Example
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.signup({
  email: 'test@example.com',
});
メソッドパラメーター
このメソッドは、指定された username を、トランザクションコンテキストで定義されている現在の username ポリシーに照らして検証します。username が有効かどうかと、その理由を示すオブジェクトを返します。
Example
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
const result = signupIdManager.validateUsername('myusername');
// result => { valid: true, errors: [] }
メソッドパラメーター