Elenca le sessioni attive
GET/v1/auth/sessions
Restituisce le sessioni ancora valide (token di aggiornamento) dell'utente trasportate da JWT. Non esiste un endpoint di "sessione corrente": l'utente corrente viene letto su GET /v1/auth/me.
Questa pagina è stata tradotta automaticamente. Fa fede la versione inglese.
Intestazioni#
| Intestazione | Obbligatorio | Valore |
|---|---|---|
apikey | sì | Project API key |
Authorization | sì | 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 |
Strade vicine#
Informazioni
GET /v1/auth/me rende l'utente corrente. DELETE /v1/auth/sessions/{session_id} revoca una sessione specifica. POST /v1/auth/logout chiude la sessione corrente.
Cache lato client#
Suggerimento
L'SDK mantiene la sessione in memoria e nell'archivio locale. getSession() non effettua alcuna chiamata di rete finché l'access_token non è scaduto; alla scadenza viene attivato un aggiornamento.