Skip to main content

Function: revokeAllSessionsForUser()

revokeAllSessionsForUser(userId, revokedByProfileId): Promise<void>

Defined in: src/server/auth/session.ts:35

Force-logout: mark every live session for a user as revoked. Middleware then denies their next request and clears the auth cookies. (Owner-only; the calling action enforces the role.)

Parameters

userId

string

revokedByProfileId

string

Returns

Promise<void>