Better Auth · Module
listSessions
Better Auth stores sessions in cookies and verifies the session token on each request. The session API can read, list, update, and revoke sessions.
Last updated
Syntax
authClient.getSession()
authClient.useSession()
authClient.listSessions()
authClient.revokeSession({ token })
authClient.revokeOtherSessions()
authClient.revokeSessions()
authClient.updateSession({ ...customFields })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Session tableSession expirationgetSessionuseSessionlistSessionsrevokeSessionrevokeOtherSessionsrevokeSessions