MCPcopy
hub / github.com/Unleash/unleash / insertSession

Method insertSession

src/lib/types/stores/session-store.ts:15–15  ·  view source on GitHub ↗
(data: Omit<ISession, 'createdAt'>)

Source from the content-addressed store, hash-verified

13 deleteSessionsForUser(userId: number): Promise<void>;
14 deleteSessionsForUserExcept(userId: number, keepSid: string): Promise<void>;
15 insertSession(data: Omit<ISession, 'createdAt'>): Promise<ISession>;
16 getSessionsCount(): Promise<{ userId: number; count: number }[]>;
17 getMaxSessionsCount(): Promise<number>;
18}

Callers 8

logout.test.tsFile · 0.65
user.test.tsFile · 0.65
insertSessionMethod · 0.65
seedUserWithTwoSessionsFunction · 0.65
config.e2e.test.tsFile · 0.65

Implementers 3

SessionStoresrc/lib/db/session-store.ts
FakeSessionStoresrc/test/fixtures/fake-session-store.t
SessionServicesrc/lib/services/session-service.ts

Calls

no outgoing calls

Tested by 1

seedUserWithTwoSessionsFunction · 0.52