Reset a customer password with a token
POST
/auth/reset-password
Public. Consumes a single-use reset token (validated for existence, unexpired, unused) and sets a new password. Returns 400 on an invalid, expired or already-used token. Revokes every refresh token of the customer (all devices) and refuses, with 401, every access token issued before the reset.
Auth: Public (no authentication).
Request Body
application/json
JSON "token": "string", "newPassword": "string"
{
}
Responses
Password has been reset
application/json
JSON "ok": true, "message": "string"
{
}