Overview
Password reset is a crucial process for maintaining account security. This document outlines the steps to verify the status of a password reset, initiate a password reset system event, and successfully submit the token for a seamless and secure recovery of account access.
Password reset is right now only possible for Email/Password users and not for users that signed up via any of the third party auth providers.
Requesting password reset
To request a password reset, use the /auth/user/password/reset/token endpoint. If successfull, the returned token is valid for one hour.
Example Request for Requesting password reset
curl --location --request POST 'https://my-project.fastgenapp.com/auth/user/password/reset/token' \
--header 'Content-Type: application/json' \
--data '{
"formFields": [
{
"id": "email",
"value": "spongebob@fastgen.com"
}
]
}'
Submitting Password Reset Token
To submit the verification token received in the email, use the /auth/user/password/reset endpoint.
Example Request for Submitting Verification Token
curl --location --request POST 'https://my-project.fastgenapp.com/auth/user/password/reset' \
--header 'Content-Type: application/json' \
--data '{
"formFields": [
{
"id": "password",
"value": "<mySecretPassword1>"
}
],
"token": "OGY0NzE0ZWQxMDhiODhiMWFlOGZjOWFkZWJkYWZjNzM2MWI5M2M1YzExMDRlYWFhYTJjNDRiMDMxZWU5ZmE5YWYxNzcyM2RmNjRjODc5ZWFjOGM5ZTRmZGQ3YjgxM2Ri"
}'