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

Function cookieValue

e2e/cloud/oauth-callback-org-scope.test.ts:33–37  ·  view source on GitHub ↗
(pair: string)

Source from the content-addressed store, hash-verified

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

Callers 1

setWorkosSessionCookieFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected