ログイン画面クラス
ログイン画面クラス
ログイン画面クラスはIdentifier First認証フローの一部で、ユーザーの識別子とパスワードを収集します。テナントのセットアップに応じて、この識別子はメールアドレス、電話番号、またはユーザー名になります。
![]() |
ログイン画面クラスのインポートとインスタンス化
import Login from "@auth0/auth0-acul-js/login";
const loginManager = new Login();
// SDK Properties return a string, number or boolean
// ex. "login-id"
loginManager.screen.name;
// SDK Methods return an object or array
// ex. { signup: "/signup_url", reset_password: "/reset_password_url"}
loginManager.screenLinks();
Was this helpful?
プロパティ
ログイン画面クラスには以下のプロパティがあります。
interface branding {
settings: null | BrandingSettings;
themes: null | BrandingThemes;
}
interface BrandingSettings {
colors?: {
pageBackground?: string | {
angleDeg: number;
end: string;
start: string;
type: string;
};
primary?: string;
};
faviconUrl?: string;
font?: {url: string;};
logoUrl?: string;
}
interface BrandingThemes {
default: {
borders: Record<string, string | number | boolean>;
colors: Record<string, string>;
displayName: string;
fonts: Record<string, string | boolean | object>;
pageBackground: Record<string, string>;
widget: Record<string, string | number>;
};
}
Was this helpful?
interface client {
description: null | string;
id: string;
logoUrl: null | string;
name: string;
metadata: null | {[key: string]: string;};
}
Was this helpful?
interface organization {
branding: null | {
colors?: {
pageBackground?: string;
primary?: string;
};
logoUrl?: string;
};
displayName: null | string;
id: null | string;
metadata: null | {[key: string]: string;};
name: null | string;
usage: null | string;
}
Was this helpful?
interface prompt{
name: string;
}
Was this helpful?
interface screen {
captcha: null | CaptchaContext;
captchaImage: null | string;
captchaProvider: null | string;
captchaSiteKey: null | string;
data: null | {username?: string;};
isCaptchaAvailable: boolean;
links: null | Record<string, string>;
name: string;
resetPasswordLink: null | string;
signupLink: null | string;
texts: null | Record<string, string>;
}
interface CaptchaContext {
image?: string;
provider: string;
siteKey?: string;
}
Was this helpful?
interface tenant {
enabledFactors: null | string[];
enabledLocales: null | string[];
friendlyName: null | string;
name: null | string;
}
Was this helpful?
interface transaction {
allowedIdentifiers: null | ("email" | "username" | "phone")[];
alternateConnections: null | (Connection | EnterpriseConnection)[];
connectionStrategy: null | string;
countryCode: null | string;
countryPrefix: null | string;
currentConnection: null | Connection;
errors: null | Error[];
hasErrors: boolean;
isForgotPasswordEnabled: boolean;
isPasskeyEnabled: boolean;
isSignupEnabled: boolean;
locale: string;
state: string;
getPasswordPolicy(): null | PasswordPolicy;
}
interface Connection {
metadata?: Record<string, string>;
name: string;
strategy: string;
}
interface EnterpriseConnection {
metadata?: Record<string, string>;
name: string;
options: {
displayName?: string;
iconUrl?: string;
showAsButton: boolean;
};
strategy: string;
}
interface PasswordPolicy {
minLength?: number;
policy:
| "low"
| "fair"
| "good"
| "excellent";
}
Was this helpful?
interface untrustedData {
authorizationParams: null | {
login_hint?: string;
screen_hint?: string;
ui_locales?: string;
[key: `ext-${string}`]: string;
};
submittedFormData: null | {
[key: string]:
| string
| number
| boolean
| undefined;
};
}
Was this helpful?
interface user {
appMetadata: null | {[key: string]: string;};
email: null | string;
enrolledDevices: null | ShortEntity<"device">[];
enrolledEmails: null | ShortEntity<"email">[];
enrolledFactors: null | string[];
enrolledPhoneNumbers: null | ShortEntity<"phoneNumber">[];
id: null | string;
organizations: null | {
branding: undefined | {logoUrl: undefined | string;};
displayName: undefined | string;
organizationId: undefined | string;
organizationName: undefined | string;
}[];
phoneNumber: null | string;
picture: null | string;
userMetadata: null | {[key: string]: string;};
username: null | string;
}
ShortEntity<Key>: {
id: number;
} & Record<Key, string>
Was this helpful?
メソッド
ログイン画面クラスには以下のメソッドがあります。
login( options? )
このメソッドは識別子と入力されたパスワードを基にユーザーを認証します。サーバーの構成に応じて、これはメールアドレス、ユーザー名、または電話番号になります。詳細については、「柔軟な識別子」を参照してください。
loginManager.login({
username: "testUser",
password: "testPassword"
});
Was this helpful?
パラメーター | タイプ | 必須 | 説明 |
---|---|---|---|
username |
文字列 | 必須 | ユーザーの識別子です。 |
password |
文字列 | 必須 | ユーザーのパスワードです。 |
captcha |
文字列 | 条件付き | CAPTCHAプロバイダーが返すCAPTCHAコードまたは応答です。このプロパティはAuth0テナントにボット検知が有効な場合には必須です。 |
[key: string] |
文字列 | 数値 | ブール値 | undefined | 任意 | ユーザーから収集した追加のデータです。このデータにはpost-login アクショントリガーでアクセスできます。 |
socialLogin( options? )
このメソッドは認証のために、ユーザーをソーシャルまたはエンタープライズIDプロバイダー(IdP)にリダイレクトします。詳細については、「ソーシャルIDプロバイダー」と「エンタープライズIDプロバイダー」を参照してください。
loginManager.socialLogin({
connection: "google-oauth2"
});
Was this helpful?
パラメーター | タイプ | 必須か否か | 説明 |
---|---|---|---|
connection |
文字列 | 必須 | 接続の識別子。 |
[key: string] |
文字列 | 番号 | ブール値 | 未定義 | 任意 | ユーザーから収集した追加のデータ。このデータはpost-login アクショントリガーでアクセスできます。 |
ログインID画面クラス
ログインID画面クラスはIdentifier First認証フローの一部で、ユーザーの識別子を収集します。テナントのセットアップに応じて、この識別子はメールアドレス、電話番号、またはユーザー名になります。
![]() |
ログインID画面クラスのインポートとインスタンス化
import LoginId from '@auth0/auth0-acul-js/login-id';
const loginIdManager = new LoginId();
// SDK Properties return a string, number or boolean
// ex. "login-id"
loginIdManager.screen.name;
// SDK Methods return an object or array
// ex. { signup: "/signup_url", reset_password: "/reset_password_url"}
loginIdManager.screenLinks();
Was this helpful?
プロパティ
ログインID画面クラスには以下のプロパティがあります。
interface branding {
settings: null | BrandingSettings;
themes: null | BrandingThemes;
}
interface BrandingSettings {
colors?: {
pageBackground?: string | {
angleDeg: number;
end: string;
start: string;
type: string;
};
primary?: string;
};
faviconUrl?: string;
font?: {url: string;};
logoUrl?: string;
}
interface BrandingThemes {
default: {
borders: Record<string, string | number | boolean>;
colors: Record<string, string>;
displayName: string;
fonts: Record<string, string | boolean | object>;
pageBackground: Record<string, string>;
widget: Record<string, string | number>;
};
}
Was this helpful?
interface client {
description: null | string;
id: string;
logoUrl: null | string;
name: string;
metadata: null | {[key: string]: string;};
}
Was this helpful?
interface organization {
branding: null | {
colors?: {
pageBackground?: string;
primary?: string;
};
logoUrl?: string;
};
displayName: null | string;
id: null | string;
metadata: null | {[key: string]: string;};
name: null | string;
usage: null | string;
}
Was this helpful?
interface prompt{
name: string;
}
Was this helpful?
interface screen {
captcha: null | CaptchaContext;
captchaImage: null | string;
captchaProvider: null | string;
captchaSiteKey: null | string;
data: null | Record<string, string>;
isCaptchaAvailable: boolean;
links: null | Record<string, string>;
name: string;
publicKey: null | { challenge: string;};
resetPasswordLink: null | string;
signupLink: null | string;
texts: null | Record<string, string>;
}
interface CaptchaContext {
image?: string;
provider: string;
siteKey?: string;
}
Was this helpful?
interface tenant {
enabledFactors: null | string[];
enabledLocales: null | string[];
friendlyName: null | string;
name: null | string;
}
Was this helpful?
interface transaction {
allowedIdentifiers: null | ("email" | "username" | "phone")[];
alternateConnections: null | (Connection | EnterpriseConnection)[];
connectionStrategy: null | string;
countryCode: null | string;
countryPrefix: null | string;
currentConnection: null | Connection;
errors: null | Error[];
hasErrors: boolean;
isForgotPasswordEnabled: boolean;
isPasskeyEnabled: boolean;
isSignupEnabled: boolean;
isUsernameRequired: boolean;
locale: string;
state: string;
usernamePolicy: null | UsernamePolicy;
}
interface Connection {
metadata?: Record<string, string>;
name: string;
strategy: string;
}
interface EnterpriseConnection {
metadata?: Record<string, string>;
name: string;
options: {
display_name?: string;
icon_url?: string;
show_as_button: boolean;
};
strategy: string;
}
interface UsernamePolicy {
allowedFormats: {
usernameInEmailFormat: boolean;
usernameInPhoneFormat: boolean;
};
maxLength: number;
minLength: number;
}
Was this helpful?
interface untrustedData {
authorizationParams: null | {
login_hint?: string;
screen_hint?: string;
ui_locales?: string;
[key: `ext-${string}`]: string;
};
submittedFormData: null | {
[key: string]:
| string
| number
| boolean
| undefined;
};
}
Was this helpful?
interface user {
appMetadata: null | {[key: string]: string;};
email: null | string;
enrolledDevices: null | ShortEntity<"device">[];
enrolledEmails: null | ShortEntity<"email">[];
enrolledFactors: null | string[];
enrolledPhoneNumbers: null | ShortEntity<"phoneNumber">[];
id: null | string;
organizations: null | {
branding: undefined | {logoUrl: undefined | string;};
displayName: undefined | string;
organizationId: undefined | string;
organizationName: undefined | string;
}[];
phoneNumber: null | string;
picture: null | string;
userMetadata: null | {[key: string]: string;};
username: null | string;
}
ShortEntity<Key>: {
id: number;
} & Record<Key, string>
Was this helpful?
メソッド
ログインID画面クラスには以下のメソッドがあります。
login( options? )
このメソッドはユーザーを次のステップへ進めて、パスワードまたはワンタイムパスワード(OTP)コードの入力を求めます。サーバーの構成に応じて、これはメールアドレス、ユーザー名、または電話番号になります。詳細については、「柔軟な識別子」を参照してください。
loginIdManager.login({
username: <identifierFieldValue>
});
Was this helpful?
パラメーター | タイプ | 必須 | 説明 |
---|---|---|---|
username |
文字列 | 必須 | ユーザーの識別子です。 |
captcha |
文字列 | 条件付き | CAPTCHAプロバイダーが返すCAPTCHAコードまたは応答です。このプロパティはAuth0テナントにボット検知が有効な場合には必須です。 |
[key: string] |
文字列 | 数値 | ブール値 | 未定義 | 任意 | ユーザーから収集した追加のデータです。このデータにはpost-login アクショントリガーでアクセスできます。 |
passkeyLogin( options? )
このメソッドは提供されたパスキーでユーザーを認証し、成功の場合はユーザーをredirect_url
にリダイレクトします。
// This method does not support any parameters
loginIdManager.passkeyLogin();
Was this helpful?
socialLogin( options? )
このメソッドは認証のために、ユーザーをソーシャルまたはエンタープライズIDプロバイダー(IdP)にリダイレクトします。詳細については、「ソーシャルIDプロバイダー」と「エンタープライズIDプロバイダー」を参照してください。
// Get the desired connection
const selectedConnection = alternateConnections.filter((connection) =>
connection.strategy === "google-oauth2"
});
loginIdManager.socialLogin({
connection: selectedConnection.strategy
});
Was this helpful?
パラメーター | タイプ | 必須か否か | 説明 |
---|---|---|---|
connection |
文字列 | 必須 | 接続の識別子。 |
[key: string] |
文字列 | 番号 | ブール値 | 未定義 | 任意 | ユーザーから収集した追加のデータ。このデータはpost-login アクショントリガーでアクセスできます。 |
pickCountryCode( options? )
このメソッドはユーザーを国番号選択リストにリダイレクトし、ユーザーが電話番号の国番号を更新できるようにします。
// This method does not support any parameters
loginIdManager.pickCountryCode();
Was this helpful?
ログインパスワード画面クラス
ログインパスワード画面クラスはIdentifier First認証フローの一部で、ユーザーのパスワードを収集します。
![]() |
ログインパスワード画面クラスのインポートとインスタンス化
import LoginPassword from "@auth0/auth0-acul-js/login-password";
const loginPasswordManager = new LoginPassword();
// SDK Properties return a string, number or boolean
// ex. "login-password"
loginPasswordManager.screen.name;
// SDK Methods return an object or array
// ex. { signup: "/signup_url", reset_password: "/reset_password_url"}
loginPasswordManager.screenLinks();
Was this helpful?
プロパティ
ログインパスワード画面クラスには以下のプロパティがあります。
interface branding {
settings: null | BrandingSettings;
themes: null | BrandingThemes;
}
interface BrandingSettings {
colors?: {
pageBackground?: string | {
angleDeg: number;
end: string;
start: string;
type: string;
};
primary?: string;
};
faviconUrl?: string;
font?: {url: string;};
logoUrl?: string;
}
interface BrandingThemes {
default: {
borders: Record<string, string | number | boolean>;
colors: Record<string, string>;
displayName: string;
fonts: Record<string, string | boolean | object>;
pageBackground: Record<string, string>;
widget: Record<string, string | number>;
};
}
Was this helpful?
interface client {
description: null | string;
id: string;
logoUrl: null | string;
name: string;
metadata: null | {[key: string]: string;};
}
Was this helpful?
interface organization {
branding: null | {
colors?: {
pageBackground?: string;
primary?: string;
};
logoUrl?: string;
};
displayName: null | string;
id: null | string;
metadata: null | {[key: string]: string;};
name: null | string;
usage: null | string;
}
Was this helpful?
interface prompt{
name: string;
}
Was this helpful?
interface screen {
captcha: null | CaptchaContext;
captchaImage: null | string;
captchaProvider: null | string;
captchaSiteKey: null | string;
data: null | { username: string; };
editIdentifierLink: null | string;
isCaptchaAvailable: boolean;
links: null | Record<string, string>;
name: string;
resetPasswordLink: null | string;
signupLink: null | string;
texts: null | Record<string, string>;
}
interface CaptchaContext {
image?: string;
provider: string;
siteKey?: string;
}
Was this helpful?
interface tenant {
enabledFactors: null | string[];
enabledLocales: null | string[];
friendlyName: null | string;
name: null | string;
}
Was this helpful?
interface transaction {
alternateConnections: null | (Connection | EnterpriseConnection)[];
connectionStrategy: null | string;
countryCode: null | string;
countryPrefix: null | string;
currentConnection: null | Connection;
errors: null | Error[];
hasErrors: boolean;
isForgotPasswordEnabled: boolean;
isPasskeyEnabled: boolean;
isSignupEnabled: boolean;
locale: string;
state: string;
getAllowedIdentifiers(): null | ("email" | "username" | "phone")[];
getPasswordPolicy(): null | PasswordPolicy;
getUsernamePolicy(): null | UsernamePolicy;
}
interface Connection {
metadata?: Record<string, string>;
name: string;
strategy: string;
}
interface EnterpriseConnection {
metadata?: Record<string, string>;
name: string;
options: {
displayName?: string;
iconURL?: string;
showAsButton: boolean;
};
strategy: string;
}
interface PasswordPolicy {
minLength?: number;
policy:
| "low"
| "fair"
| "good"
| "excellent";
}
interface UsernamePolicy {
allowedFormats: {
usernameInEmailFormat: boolean;
usernameInPhoneFormat: boolean;
};
maxLength: number;
minLength: number;
}
Was this helpful?
interface untrustedData {
authorizationParams: null | {
login_hint?: string;
screen_hint?: string;
ui_locales?: string;
[key: `ext-${string}`]: string;
};
submittedFormData: null | {
[key: string]:
| string
| number
| boolean
| undefined;
};
}
Was this helpful?
interface user {
appMetadata: null | {[key: string]: string;};
email: null | string;
enrolledDevices: null | ShortEntity<"device">[];
enrolledEmails: null | ShortEntity<"email">[];
enrolledFactors: null | string[];
enrolledPhoneNumbers: null | ShortEntity<"phoneNumber">[];
id: null | string;
organizations: null | {
branding: undefined | {logoUrl: undefined | string;};
displayName: undefined | string;
organizationId: undefined | string;
organizationName: undefined | string;
}[];
phoneNumber: null | string;
picture: null | string;
userMetadata: null | {[key: string]: string;};
username: null | string;
}
ShortEntity<Key>: {
id: number;
} & Record<Key, string>
Was this helpful?
メソッド
ログインパスワード画面クラスには以下のメソッドがあります。
login( options? )
このメソッドは、前のステップからの識別子と入力されたパスワードを基にユーザーを認証します。認証したら、ユーザーが次のステップにリダイレクトされます。
loginPasswordManager.login({
username: <usernameFieldValue>,
password: ********
});
Was this helpful?
パラメーター | タイプ | 必須 | 説明 |
---|---|---|---|
captcha |
文字列 | 条件付き | CAPTCHAプロバイダーが返すCAPTCHAコードまたは応答です。このプロパティはAuth0テナントにボット検知が有効な場合には必須です。 |
username |
文字列 | 必須 | ユーザーの識別子です。 |
password |
文字列 | 必須 | ユーザーのパスワードです。 |
[key: string] |
文字列 | 数値 | ブール値 | 未定義 | 任意 | ユーザーから収集した追加のデータです。このデータにはpost-login アクショントリガーでアクセスできます。 |
パスワードレスログインメールコード画面クラス
パスワードレスログインメールコード画面クラスはIdentifier First認証フローの一部です。ワンタイムパスワード(OTP)コードが前のステップで入力済みのメールアドレスに送信され、ユーザーがそれを使用して認証できるようにします。
![]() |
パスワードレスログインメールコード画面クラスのインポートとインスタンス化
import LoginPasswordlessEmailCode from '@auth0/auth0-acul-js/login-passwordless-email-code';
const loginPasswordlessEmailCodeManager = new LoginPasswordlessEmailCode();
// SDK Properties return a string, number or boolean
// ex. "login-passwordless-email-code"
loginPasswordlessEmailCodeManager.screen.name;
// SDK Methods return an object or array
// ex. { edit_identifier: "/edit_url" }
loginPasswordlessEmailCodeManager.screenLinks();
Was this helpful?
プロパティ
パスワードレスログインメールコード画面クラスには以下のプロパティがあります。
interface branding {
settings: null | BrandingSettings;
themes: null | BrandingThemes;
}
interface BrandingSettings {
colors?: {
pageBackground?: string | {
angleDeg: number;
end: string;
start: string;
type: string;
};
primary?: string;
};
faviconUrl?: string;
font?: {url: string;};
logoUrl?: string;
}
interface BrandingThemes {
default: {
borders: Record<string, string | number | boolean>;
colors: Record<string, string>;
displayName: string;
fonts: Record<string, string | boolean | object>;
pageBackground: Record<string, string>;
widget: Record<string, string | number>;
};
}
Was this helpful?
interface client {
description: null | string;
id: string;
logoUrl: null | string;
name: string;
metadata: null | {[key: string]: string;};
}
Was this helpful?
interface organization {
branding: null | {
colors?: {
pageBackground?: string;
primary?: string;
};
logoUrl?: string;
};
displayName: null | string;
id: null | string;
metadata: null | {[key: string]: string;};
name: null | string;
usage: null | string;
}
Was this helpful?
interface prompt{
name: string;
}
Was this helpful?
interface screen {
captcha: null | CaptchaContext;
captchaImage: null | string;
captchaProvider: null | string;
captchaSiteKey: null | string;
data: null | {
email?: string;
username?: string;
};
editIdentifierLink: null | string;
isCaptchaAvailable: boolean;
links: null | Record<string, string>;
name: string;
resetPasswordLink: null | string;
signupLink: null | string;
texts: null | Record<string, string>;
}
interface CaptchaContext {
image?: string;
provider: string;
siteKey?: string;
}
Was this helpful?
interface tenant {
enabledFactors: null | string[];
enabledLocales: null | string[];
friendlyName: null | string;
name: null | string;
}
Was this helpful?
interface transaction {
alternateConnections: null | (Connection | EnterpriseConnection)[];
connectionStrategy: null | string;
countryCode: null | string;
countryPrefix: null | string;
currentConnection: null | Connection;
errors: null | Error[];
hasErrors: boolean;
isSignupEnabled: null | boolean;
locale: string;
state: string;
}
interface Connection {
metadata?: Record<string, string>;
name: string;
strategy: string;
}
interface EnterpriseConnection {
metadata?: Record<string, string>;
name: string;
options: {
display_name?: string;
icon_url?: string;
show_as_button: boolean;
};
strategy: string;
}
Was this helpful?
interface untrustedData {
authorizationParams: null | {
login_hint?: string;
screen_hint?: string;
ui_locales?: string;
[key: `ext-${string}`]: string;
};
submittedFormData: null | {
[key: string]:
| string
| number
| boolean
| undefined;
};
}
Was this helpful?
interface user {
appMetadata: null | {[key: string]: string;};
email: null | string;
enrolledDevices: null | ShortEntity<"device">[];
enrolledEmails: null | ShortEntity<"email">[];
enrolledFactors: null | string[];
enrolledPhoneNumbers: null | ShortEntity<"phoneNumber">[];
id: null | string;
organizations: null | {
branding: undefined | {logoUrl: undefined | string;};
displayName: undefined | string;
organizationId: undefined | string;
organizationName: undefined | string;
}[];
phoneNumber: null | string;
picture: null | string;
userMetadata: null | {[key: string]: string;};
username: null | string;
}
ShortEntity<Key>: {
id: number;
} & Record<Key, string>
Was this helpful?
メソッド
パスワードレスログインメールコード画面クラスには以下のメソッドがあります。
resendCode( options? )
このメソッドは前のステップで入力されたメールアドレスにOTPを送信します。
// This method does not support any parameters
loginPasswordlessEmailCode.resendCode();
Was this helpful?
パラメーター | タイプ | 必須 | 説明 |
---|---|---|---|
[key: string] |
文字列 | 数字 | ブール値 | undefined | 任意 | ユーザーから収集した任意のデータです。 |
SubmitCode( options? )
このメソッドは提供されたメールアドレスとOTPコードを基にユーザーを認証します。
loginPasswordlessEmailCode.submitCode({
email: <EmailFieldValue>;
code: <OtpCodeFieldValue>;
});
Was this helpful?
パラメーター | タイプ | 必須 | 説明 |
---|---|---|---|
captcha |
文字列 | 条件付き | CAPTCHAプロバイダーが返すCAPTCHAコードまたは応答です。このプロパティはAuth0テナントにボット検知が有効な場合には必須です。 |
code |
値の文字列 | 必須 | メールに送信されたOTPコードです。 |
[key: string] |
文字列 | 数値 | ブール値 | undefined | 任意 | ユーザーから収集した追加のデータです。このデータはpost-login アクションのトリガーで利用できます。 |
パスワードレスログインSMS OTP画面クラス
パスワードレスログインSMS OTP画面クラスはIdentifier First認証フローの一部です。ワンタイムパスワード(OTP)コードが前のステップで入力済みの電話番号に送信され、ユーザーがそれを使用して認証できるようにします。
![]() |
パスワードレスログインメールコード画面クラスのインポートとインスタンス化
import LoginPasswordlessSmsOtp from '@auth0/auth0-acul-js/login-passwordless-sms-otp';
const loginPasswordlessSmsOtpManager = new LoginPasswordlessSmsOtp();
// SDK Properties return a string, number or boolean
// ex. "login-passwordless-sms-otp"
loginPasswordlessSmsOtpManager.screen.name;
// SDK Methods return an object or array
// ex. { edit_identifier: "/edit_url" }
loginPasswordlessSmsOtpManager.screenLinks();
Was this helpful?
プロパティ
パスワードレスログインSMS OTP画面クラスには以下のプロパティがあります。
interface branding {
settings: null | BrandingSettings;
themes: null | BrandingThemes;
}
interface BrandingSettings {
colors?: {
pageBackground?: string | {
angleDeg: number;
end: string;
start: string;
type: string;
};
primary?: string;
};
faviconUrl?: string;
font?: {url: string;};
logoUrl?: string;
}
interface BrandingThemes {
default: {
borders: Record<string, string | number | boolean>;
colors: Record<string, string>;
displayName: string;
fonts: Record<string, string | boolean | object>;
pageBackground: Record<string, string>;
widget: Record<string, string | number>;
};
}
Was this helpful?
interface client {
description: null | string;
id: string;
logoUrl: null | string;
name: string;
metadata: null | {[key: string]: string;};
}
Was this helpful?
interface organization {
branding: null | {
colors?: {
pageBackground?: string;
primary?: string;
};
logoUrl?: string;
};
displayName: null | string;
id: null | string;
metadata: null | {[key: string]: string;};
name: null | string;
usage: null | string;
}
Was this helpful?
interface prompt{
name: string;
}
Was this helpful?
interface screen {
backLink: null | string;
captcha: null | CaptchaContext;
captchaImage: null | string;
captchaProvider: null | string;
captchaSiteKey: null | string;
data: {username: string;};
isCaptchaAvailable: boolean;
links: null | Record<string, string>;
name: string;
resetPasswordLink: null | string;
signupLink: null | string;
texts: null | Record<string, string>;
}
interface CaptchaContext {
image?: string;
provider: string;
siteKey?: string;
}
Was this helpful?
interface tenant {
enabledFactors: null | string[];
enabledLocales: null | string[];
friendlyName: null | string;
name: null | string;
}
Was this helpful?
interface transaction {
alternateConnections: null | (Connection | EnterpriseConnection)[];
connectionStrategy: null | string;
countryCode: null | string;
countryPrefix: null | string;
currentConnection: null | Connection;
errors: null | Error[];
hasErrors: boolean;
isSignupEnabled: boolean;
locale: string;
state: string;
}
interface Connection {
metadata?: Record<string, string>;
name: string;
strategy: string;
}
interface EnterpriseConnection {
metadata?: Record<string, string>;
name: string;
options: {
display_name?: string;
icon_url?: string;
show_as_button: boolean;
};
strategy: string;
}
Was this helpful?
interface untrustedData {
authorizationParams: null | {
login_hint?: string;
screen_hint?: string;
ui_locales?: string;
[key: `ext-${string}`]: string;
};
submittedFormData: null | {
[key: string]:
| string
| number
| boolean
| undefined;
};
}
Was this helpful?
interface user {
appMetadata: null | {[key: string]: string;};
email: null | string;
enrolledDevices: null | ShortEntity<"device">[];
enrolledEmails: null | ShortEntity<"email">[];
enrolledFactors: null | string[];
enrolledPhoneNumbers: null | ShortEntity<"phoneNumber">[];
id: null | string;
organizations: null | {
branding: undefined | {logoUrl: undefined | string;};
displayName: undefined | string;
organizationId: undefined | string;
organizationName: undefined | string;
}[];
phoneNumber: null | string;
picture: null | string;
userMetadata: null | {[key: string]: string;};
username: null | string;
}
ShortEntity<Key>: {
id: number;
} & Record<Key, string>
Was this helpful?
メソッド
パスワードレスログインSMS OTP画面クラスには以下のメソッドがあります。
resendOTP( options? )
このメソッドは前のステップで入力されたメールアドレスにOTPを送信します。
// This method does not support any parameters
loginPasswordlessSmsOtpManager.resendOTP()
Was this helpful?
パラメーター | タイプ | 必須 | 説明 |
---|---|---|---|
[key: string] |
文字列 | 数字 | ブール値 | undefined | 任意 | ユーザーから収集した任意のデータです。 |
submitOTP( options? )
このメソッドは提供された電話番号とOTPコードを基にユーザーを認証します。
loginPasswordlessSmsOtpManager.submitOTP({
username: <PhoneFieldValue>;
otp: <OtpCodeFieldValue>;
})
Was this helpful?
パラメーター | タイプ | 必須 | 説明 |
---|---|---|---|
captcha |
文字列 | 条件付き | CAPTCHAプロバイダーが返すCAPTCHAコードまたは応答です。このプロパティはAuth0テナントにボット検知が有効な場合には必須です。 |
otp |
文字列 | 必須 | 電話番号に送信されたOTPコードです。 |
username |
文字列 | 必須 | 前の手順で使用された電話番号です。 |
[key: string] |
文字列 | 数値 | ブール値 | 未定義 | 任意 | ユーザーから収集した任意のデータです。 |