Login screen class
The Login screen class is part of the Identifier First Authentication flow and collects the user’s identifier and password. Depending on your tenant setup, this identifier can be an email, phone number, or username.
Properties
The Login screen class properties are:Methods
The Login screen class methods are:login( options? )
This method authenticates the user based on the identifier and provided password. Depending on the server configuration, this could be an email, username, or phone number. Review Flexible Identifiers for more details.Parameter | Type | Required | Description |
---|---|---|---|
username | string | Yes | The user’s identifier. |
password | string | Yes | The user’s password. |
captcha | string | Conditionally | The captcha code or response from the captcha provider. This property is required if your Auth0 tenant has Bot Detection enabled. |
[key: string] | string | number | boolean | undefined | No | Additional data collected from the user. This data is accessible in the post-login Action trigger. |
federatedLogin( options? )
This method redirects the user to the social or enterprise (IdP) for authentication. Review Social Identity Providers and Enterprise Identity Providers for details.Parameter | Type | Required | Description |
---|---|---|---|
connection | string | Yes | The identifier for the connection. |
[key: string] | string | number | boolean | undefined | No | Additional data collected from the user. This data is accessible in the post-login Action trigger. |
Login Email Verification screen class
The Login Email Verification screen class provides methods associated with the login-email-verification screen.
Properties
The Login Email Verification screen class properties are:Methods
The Login Email Verification screen class methods are:continueWithCode( options? )
This method submits the email verification code entered by the user to Auth0.Parameter | Type | Required | Description |
---|---|---|---|
code | string | Yes | The code entered by the user. |
[key: string] | string | number | boolean | undefined | No | Optional data collected from user. |
resendCode( options? )
This method requests Auth0 to send a new verification code to the user’s email address.Parameter | Type | Required | Description |
---|---|---|---|
[key: string] | string | number | boolean | undefined | No | Optional data collected from user. |
Login ID screen class
The Login ID screen class is part of the Identifier First Authentication flow and collects the user’s identifier. Depending on your tenant setup, this identifier can be an email, phone number, or username.
Properties
The Login ID screen class properties are:Methods
The Login ID screen class methods are:login( options? )
This method takes the user to the next step where they can enter their password or one-time password (OTP) code. Depending on the server configuration, this could be an email, username, or phone number. Review Flexible Identifiers for more details.Parameter | Type | Required | Description |
---|---|---|---|
username | string | Yes | The user’s identifier. |
captcha | string | Conditionally | The captcha code or response from the captcha provider. This property is required if your Auth0 tenant has Bot Detection enabled. |
[key: string] | string | number | boolean | undefined | No | Additional data collected from the user. This data is accessible in the post-login Action trigger. |
passkeyLogin( options? )
This method authenticates the user using the provided passkey and, if successful, redirects them to theredirect_url
.
federatedLogin( options? )
This method redirects the user to the social or enterprise identity provider (IdP) for authentication. Review Social Identity Providers and Enterprise Identity Providers for details.Parameter | Type | Required | Description |
---|---|---|---|
connection | string | Yes | The identifier for the connection. |
[key: string] | string | number | boolean | undefined | No | Additional data collected from the user. This data is accessible in the post-login Action trigger. |
pickCountryCode( options? )
This method redirects the user to the country code selection list, where they can update the country code prefix for their phone number.Login Password screen class
The Login Password screen class is part of the Identifier First Authentication flow and collects the user’s password.
Properties
The Login Password screen class properties are:Methods
The Login Password screen class method is:login( options? )
This method authenticates the user based on the identifier from the previous step and the provided password. Once authenticated, the user is directed to the next step.Parameter | Type | Required | Description |
---|---|---|---|
captcha | string | Conditionally | The captcha code or response from the captcha provider. This property is required if your Auth0 tenant has Bot Detection enabled. |
username | string | Yes | The user’s identifier. |
password | string | Yes | The user’s password. |
[key: string] | string | number | boolean | undefined | No | Additional data collected from the user. This data is accessible in the post-login Action trigger. |
Login Passwordless Email Code screen class
The Login Email Code screen class is part of the Identifier First Authentication flow. It allows the user to authenticate with a one-time password (OTP) code sent to the email provided in their previous step.
Properties
The Login Passwordless Email Code screen class properties are:Methods
The Login Passwordless Email Code screen class method are:resendCode( options? )
This method sends a new OTP code to the email provided in the previous step.Parameter | Type | Required | Description |
---|---|---|---|
[key: string] | string | number | boolean | undefined | No | Optional data collected from user. |
SubmitCode( options? )
This method authenticates the user based on the provided email address and OTP code.Parameter | Type | Required | Description |
---|---|---|---|
captcha | string | Conditionally | The captcha code or response from the captcha provider. This property is required if your Auth0 tenant has Bot Detection enabled. |
code | string number | Yes | The OTP code sent to the email. |
[key: string] | string | number | boolean | undefined | No | Additional data collected from the user. This data is accessible in the post-login Action trigger. |
Login Passwordless SMS OTP screen class
The Login Passwordless SMS OTP screen class is part of the Identifier First Authentication flow. It allows the user to authenticate with a one-time password (OTP) code sent to the phone number provided in the previous step.
Properties
The Login Passwordless SMS OTP screen class properties are:Methods
The Login Passwordless SMS OTP screen class method are:resendOTP( options? )
This method sends a new OTP code to the email provided in the previous step.Parameter | Type | Required | Description |
---|---|---|---|
[key: string] | string | number | boolean | undefined | No | Optional data collected from user. |
submitOTP( options? )
This method authenticates the user based on the provided phone number and OTP code.Parameter | Type | Required | Description |
---|---|---|---|
captcha | string | Conditionally | The captcha code or response from the captcha provider. This property is required if your Auth0 tenant has Bot Detection enabled. |
otp | string | Yes | The OTP code sent to the phone number. |
username | string | Yes | The phone number from the previous step. |
[key: string] | string | number | boolean | undefined | No | Optional data collected from the user. |