MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / invalidateSession

Function invalidateSession

packages/auth/src/session.ts:112–114  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

110}
111
112export async function invalidateSession(sessionId: string): Promise<void> {
113 await db.session.delete({ where: { id: sessionId } });
114}
115
116export type SessionValidationResult =
117 | { session: Session; user: User; userId: string }

Callers 1

auth.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected