(header: string)
| 57 | const SESSION_TTL_MS = 24 * 60 * 60 * 1000; // 24 h |
| 58 | |
| 59 | function 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 |
no outgoing calls
no test coverage detected