palbaseDocs

Palbase Auth API · API

POST/auth/token/refresh

Rotate refresh token

Exchanges a refresh token for a new access + refresh token pair. The refresh-token family is single-use: presenting the same refresh token a second time triggers family-wide revocation (RFC 6749 §10.4 reuse-detection). Grace window 30s for clock skew / network retries.

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/refresh" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "content-type: application/json" \
  -d '{"refresh_token":"string"}'

Responses

200New token pair

400Validation failed or required field missing

401Missing, invalid, or expired credentials

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

Operation RefreshToken of auth's contract.