Authentication

Reset password with recovery token

Changed on

Reset password using recovery token from forgot-password. Revokes all existing sessions for security.

post/auth/reset-password

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    HTTP bearer

Headers

X-Volcano-Proxy-Authorization, string

Trusted server-side auth proxy credential in Bearer SERVICE_KEY form. When supplied, X-Volcano-Client-IP is also required. The service key must belong to the anon key's project and hold this operation's scope: auth.signup for signup and anonymous signup, auth.signin for signin and OAuth code exchange, auth.refresh for refresh, auth.logout for logout, and auth.password_reset for forgot-password and reset-password. The password policy accepts any service key for the project. Never expose a service key to browser code.

X-Volcano-Client-IP, string

Original browser IPv4 or IPv6 address supplied by a trusted server-side auth proxy. The proxy must derive this value from its platform-verified request metadata, never from a browser-supplied header. Requires a valid X-Volcano-Proxy-Authorization header.

Request body

object required
token, string required

Recovery token from forgot-password

new_password, string required

Password validated after NFC normalization against the policy returned by GET /auth/password-policy.

Response

Password reset successful

object required
message, string

Changes

    • info

      added the new optional header request parameter X-Volcano-Client-IP

    • info

      added the new optional header request parameter X-Volcano-Proxy-Authorization

    • breaking

      the response's body type changed from no type to object for status

    2 more changes in this revision