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

Function cookiePair

e2e/targets/cloud.ts:24–29  ·  view source on GitHub ↗
(response: Response, name: string)

Source from the content-addressed store, hash-verified

22export const E2E_COOKIE_PASSWORD = "e2e_cookie_password_0123456789abcdef0123456789abcdef";
23
24const cookiePair = (response: Response, name: string): string | undefined => {
25 for (const header of response.headers.getSetCookie?.() ?? []) {
26 if (header.startsWith(`${name}=`)) return header.split(";")[0];
27 }
28 return undefined;
29};
30
31/** The real product login, headless: login → hosted AuthKit → callback. */
32const signIn = async (email: string): Promise<string> => {

Callers 2

signInFunction · 0.70
cloudTargetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected