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

Function cookiePair

e2e/scripts/record-connect-card.ts:26–31  ·  view source on GitHub ↗
(response: Response, name: string)

Source from the content-addressed store, hash-verified

24}
25
26const cookiePair = (response: Response, name: string): string | undefined => {
27 for (const header of response.headers.getSetCookie?.() ?? []) {
28 if (header.startsWith(`${name}=`)) return header.split(";")[0];
29 }
30 return undefined;
31};
32
33// The real product login, headless (login → hosted AuthKit → callback), then
34// the real create-organization flow so the card renders an org-scoped URL.

Callers 1

signInWithOrgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected