POST /api/auth/reset-password/:token
Resets user password using the token received via email from the forgot password process.Authentication
No authentication required.Path Parameters
6-digit password reset token sent to user’s email. Must be exactly 6 characters.
Request Body
New password for the account. Minimum length: 8 characters.
Request Example
Response
Success message confirming password reset.
Success Response (200 OK)
Error Responses
404 Not Found - Invalid Token
400 Bad Request - Validation Errors
cURL Example
Notes
- Token must be exactly 6 characters long
- Password is automatically hashed before storage
- Token is cleared (set to null) after successful password reset
- Rate limiting is applied to this endpoint
- After reset, user can login with the new password