Password APIs
Overview
Using the password APIs is single phase for Sign-Up and Sign-In. Upon successful authentication, the user will be logged in and the user's JWT will be returned. When resetting the password reset, the user will need to verify via email. The password reset endpoint will only succeed if the user has a validated email address.
Use Cases
- Sign-Up a new user via password authentication
- Sign-In an existing user via password authentication
- Initiate a password reset.
- Replace an existing user's password
- Update an existing user's password
Examples
Example - user sign-up via password
- Utilize the Sign-Up api endpoint. Upon successful sign-up, the user's JWT will be returned.
Example - reset user's password
- Utilize the Reset Password api endpoint.
- The user will receive a reset password email and you will then need to verify the user after the password reset is sent via email, this would need to be done via Verify Magic Link.
Example - update user's password
- Utilize the user's refresh token and update the user's password via Update Password
Was this helpful?