MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cookieValue

Function cookieValue

e2e/cloud/mcp-browser-approval-org-scope.test.ts:35–39  ·  view source on GitHub ↗
(pair: string)

Source from the content-addressed store, hash-verified

33};
34
35const cookieValue = (pair: string): string => {
36 const [, value] = pair.split(/=(.*)/s);
37 if (!value) throw new Error("cookie pair has no value");
38 return value;
39};
40
41const cookieOf = (identity: { readonly headers?: Record<string, string> }): string =>
42 identity.headers?.cookie ?? "";

Callers 1

setWorkosSessionCookieFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected