Rotate a refresh token into a new session pair
Exchanges a refreshToken for a new access/refresh pair and writes
session cookies. Rotation is one-time with a ~15 s convergence
grace for parallel refreshes; replay outside the window returns
invalid_refresh_token. CSRF-enforced: cross-site POSTs return 403.
POST
/api/auth/update-sessionRequest body
requiredapplication/jsonrefreshTokenstringrequiredResponses
200
New pair issued; Set-Cookie headers are private, no-store.
successbooleanrequiredAllowed:
truetokenstringAccess token (also delivered via Set-Cookie in cookie mode).
refreshTokenstringRotation token for /api/auth/update-session.
redirectbooleanWhether url should be navigated to.
urlstringValidated landing URL.
userUserShow propertiesHide properties
idstringemailstring<email>namestringimagestringemailVerifiedboolean400
Invalid body or an untrusted redirect parameter.
successbooleanrequiredAllowed:
falsereasonstringrequired401
Refresh token invalid, expired, or already rotated.
successbooleanrequiredAllowed:
falsereasonstringrequired403
Cross-site request rejected by CSRF validation (Fetch Metadata / Origin). Same-origin and explicitly trusted origins are unaffected.
successbooleanrequiredAllowed:
falsereasonstringrequired