MCPcopy Create free account
hub / github.com/codeaashu/claude-code / create

Method create

src/server/web/auth/adapter.ts:97–105  ·  view source on GitHub ↗
(data: Omit<SessionData, "createdAt" | "expiresAt">)

Source from the content-addressed store, hash-verified

95 // ── CRUD ──────────────────────────────────────────────────────────────────
96
97 create(data: Omit<SessionData, "createdAt" | "expiresAt">): string {
98 const id = crypto.randomUUID();
99 this.sessions.set(id, {
100 ...data,
101 createdAt: Date.now(),
102 expiresAt: Date.now() + SESSION_TTL_MS,
103 });
104 return id;
105 }
106
107 get(id: string): SessionData | undefined {
108 const s = this.sessions.get(id);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected