Aurabase Logo
aurabasedocs
Aurabase Logo
aurabasedocs
API/Auth/List active sessions

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.

This English text was generated automatically from the French original and has not been reviewed yet.
#
Request

Headers

HeaderRequiredValue
apikeyyesClé API du projet
AuthorizationyesBearer <JWT utilisateur> — l'identité vient du token, pas du corps
X-Refresh-TokennoRefresh token courant — sert uniquement à marquer is_current sur la bonne ligne
#
Notes

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.

#
Notes

Client-side cache

Astuce

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.

v1.0 · revised Apr 15, 2026