(response: Response, name: string)
| 22 | export const E2E_COOKIE_PASSWORD = "e2e_cookie_password_0123456789abcdef0123456789abcdef"; |
| 23 | |
| 24 | const 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. */ |
| 32 | const signIn = async (email: string): Promise<string> => { |
no outgoing calls
no test coverage detected