List active sessions
GET/v1/auth/sessions
Returns the still valid sessions (refresh tokens) of the user carried by the JWT. There is no “current session” endpoint: the current user is read on GET /v1/auth/me.
Headers#
| Header | Required | Value |
|---|---|---|
apikey | yes | Project API key |
Authorization | yes | Bearer <JWT>. The identity comes from the token, not from the body |
X-Refresh-Token | no | Current refresh token. Only used to set is_current on the right row |
Neighboring roads#
Info
GET /v1/auth/me makes the user current. DELETE /v1/auth/sessions/{session_id} revokes a specific session. POST /v1/auth/logout closes the current session.
Client-side cache#
Tip
The SDK keeps the session in memory and local storage. getSession() does not make any network calls until the access_token has expired; upon expiration, a refresh is triggered.
Last updated · Apr 15, 2026↗ Edit on GitHub↗ Report a problem