MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseCookies

Function parseCookies

src/server/web/auth/adapter.ts:59–69  ·  view source on GitHub ↗
(header: string)

Source from the content-addressed store, hash-verified

57const SESSION_TTL_MS = 24 * 60 * 60 * 1000; // 24 h
58
59function parseCookies(header: string): Record<string, string> {
60 const out: Record<string, string> = {};
61 for (const part of header.split(";")) {
62 const eq = part.indexOf("=");
63 if (eq === -1) continue;
64 const key = part.slice(0, eq).trim();
65 const val = part.slice(eq + 1).trim();
66 if (key) out[key] = decodeURIComponent(val);
67 }
68 return out;
69}
70
71// ── SessionStore ────────────────────────────────────────────────────────────
72

Callers 2

getFromRequestMethod · 0.85
getIdFromRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected