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

Function setCookieFor

e2e/cloud/logout-stale-session.test.ts:28–33  ·  view source on GitHub ↗
(response: Response, name: string)

Source from the content-addressed store, hash-verified

26
27/** First `Set-Cookie` header for `name`, as the raw header string. */
28const setCookieFor = (response: Response, name: string): string => {
29 for (const header of response.headers.getSetCookie()) {
30 if (header.startsWith(`${name}=`)) return header;
31 }
32 return "";
33};
34
35// Open the account dropdown and sign out. Bounded retry: a click can land
36// while the shell is still hydrating and the radix menu never opens (same

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected