Skip to main content

Complete Password Reset

POST 

/auth/reset-password

Sets the user's new password using the recovery token. Typical Flow:

  1. The user enters their new password in the form
  2. The frontend sends the token and new password to the server
  3. The server validates the token and password requirements
  4. Updates the password in the database
  5. Invalidates the recovery token
  6. Returns success confirmation Password Requirements:
  • Minimum 6 characters
  • It is recommended to include uppercase letters, lowercase letters, and numbers Usage Examples:
  • User completes the recovery form
  • System validates and updates the password
  • User can log in with the new password Important Notes:
  • The token is invalidated immediately after use
  • The same token cannot be reused
  • The password is encrypted with bcrypt before storage
  • After the change, all previous JWT tokens are invalidated

Request

Responses

Password reset successfully