palbaseDocs

Palbase Auth API · API

POST/auth/token/revoke

End a session by its refresh token

Ends the refresh token's family: every token rotated from the same sign-in. Holding the token is the authority to end it. Always 200 — whether the token existed is not told. OAuth clients revoke at /oauth/revoke.

Called by your app, with the publishable key.

Request body

fingerprint_hashstring · optionalThe device fingerprint the client sent at sign-in. Under the project's session_device_binding, a session opened with one continues only with it; a refresh from another device, or another browser or operating system, ends the session (401 session_device_changed).
refresh_tokenstring · required
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/token/revoke" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "content-type: application/json" \
  -d '{"refresh_token":"string"}'

Responses

200Ended, or there was nothing to end

400Validation failed or required field missing

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation RevokeRefreshToken of auth's contract.