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

Function setCookieFor

e2e/cloud/session-gate.test.ts:26–31  ·  view source on GitHub ↗
(response: Response, name: string)

Source from the content-addressed store, hash-verified

24 );
25
26const setCookieFor = (response: Response, name: string): string => {
27 for (const header of response.headers.getSetCookie()) {
28 if (header.startsWith(`${name}=`)) return header;
29 }
30 return "";
31};
32
33scenario(
34 "Session gate · an invalid session cookie is cleared on the way to /login",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected