Auth
Reset password
Errors
Returns an error if token is invalid, password validation fails, or database operations fail.
post/api/auth/reset-password
Request body
Example request
{
"newPassword": "newpassword123",
"token": "550e8400-e29b-41d4-a716-446655440000",
"userId": "d290f1ee-6c54-4b01-90e6-d701748f0851"
}Response
Password reset successful
Example response
{
"message": "Password has been reset successfully"
}