The Passwords Authentication Method lets you authenticate end users using a secret string of characters known only to the user.
Descope recommends using an email address as the user identifier; this allows you to utilize passwordless methods like Magic Link
in addition to passwords. These methods could be used for authentication when users forget their password or need to reset it easily.
For registering a new user, your application client should accept user information, including an email or
phone number used for verification. The application client should then send this information to your
application server. Signing up via password returns the user's JWT.
For authenticating a user, your application client should accept the user's identity (typically an email address or phone
number) and password. The application client should send this information to your application server. Signing in via
password returns the user's JWT.
Replace a password with a new one. The old password is used to authenticate the user before replacing the password. If the user cannot be authenticated, this operation will fail.
Sends a password reset prompt to the user with the given login id according to the password settings defined in the Descope console. NOTE: The user's email must be verified in order for the password reset method to complete.
The final step of completing the authentication with Descope is to validate the user session. Descope provides rich session management capabilities, including configurable session timeouts and
logout functions. You can find the details and sample code for client session validation here.
Checkpoint
Your application is now integrated with Descope. Please test with sign-up or sign-in use case.