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

Function cookiePair

e2e/cloud/unauthenticated-skeleton.test.ts:66–71  ·  view source on GitHub ↗
(response: Response, name: string)

Source from the content-addressed store, hash-verified

64 const target = yield* Target;
65
66 const cookiePair = (response: Response, name: string): string | undefined => {
67 for (const header of response.headers.getSetCookie()) {
68 if (header.startsWith(`${name}=`)) return header.split(";")[0];
69 }
70 return undefined;
71 };
72
73 // 1. A signed-out DOCUMENT request for a deep page is redirected to
74 // /login carrying the original path.

Callers 1

completeLoginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected