Function
cookiePair
(response: Response, name: string)
Source from the content-addressed store, hash-verified
| 24 | } |
| 25 | |
| 26 | const 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. |
Tested by
no test coverage detected