(ctx?: ServerSideContext)
| 6 | const USER_API = "/api/user"; |
| 7 | |
| 8 | const withCookie = (ctx?: ServerSideContext) => { |
| 9 | const cookie = ctx?.req?.headers?.cookie; |
| 10 | return cookie ? { cookie } : undefined; |
| 11 | }; |
| 12 | |
| 13 | const withSetHeaders = (resp: Response, ctx?: ServerSideContext) => { |
| 14 | const setCookie = resp.headers.get("set-cookie"); |