Password Reset
Password reset is recovery-token based, not email based — there is no mail server in this stack. The token issued once at registration is the proof.
Request
Parameters
Responses
Behavior
- Rotates the recovery token — the old one is invalidated, a new one is returned in the response.
- Bumps
tokenVersion, which invalidates every existing session across all devices. - Does not sign the caller in — use
/api/v1/auth/loginafterward. - An unknown user and a wrong recovery key answer identically (constant-time comparison against a dummy hash for nonexistent accounts).
Rate Limits
The tighter limit (8 vs 20) reflects that there is no legitimate reason to call reset repeatedly — unlike login, a user resets once.
