Skip to content
Aurabase Logo
aurabase

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#

HeaderRequiredValue
apikeyyesProject API key
AuthorizationyesBearer <JWT>. The identity comes from the token, not from the body
X-Refresh-TokennoCurrent 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.