MCPcopy
hub / github.com/mtlynch/picoshare / Cookie

Interface Cookie

e2e/helpers/db.ts:1–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1interface Cookie {
2 name: string;
3 value: string;
4 domain?: string;
5 path?: string;
6 expires?: number;
7 httpOnly?: boolean;
8 secure?: boolean;
9 sameSite?: "Strict" | "Lax" | "None";
10}
11
12export function readDbTokenCookie(cookies: Cookie[]): Cookie | undefined {
13 for (const cookie of cookies) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected