Passwords
The Passwords interface provides methods for authenticating, creating, resetting, and performing strength checks of passwords.
Types
Data class used for wrapping parameters used with Passwords authentication
Data class used for wrapping parameters used with Passwords create endpoint
Data class used for wrapping parameters used with Passwords ResetByEmail endpoint
Data class used for wrapping parameters used with Passwords ResetByEmailStart endpoint
Data class used for wrapping parameters used with Passwords StrengthCheck endpoint
Functions
Authenticate a user with their email address and password. This endpoint verifies that the user has a password currently set, and that the entered password is correct.
Create a new user with a password and an authenticated session for the user if requested. If a user with this email already exists in the project, this method will return an error.
Reset the user’s password and authenticate them. This endpoint checks that the magic link token is valid, hasn’t expired, or already been used. The provided password needs to meet our password strength requirements, which can be checked in advance with the strengthCheck method. If the token and password are accepted, the password is securely stored for future authentication and the user is authenticated.
Initiates a password reset for the email address provided. This will trigger an email to be sent to the address, containing a magic link that will allow them to set a new password and authenticate.
This method allows you to check whether or not the user’s provided password is valid, and to provide feedback to the user on how to increase the strength of their password.