(key, value, options)
| 34 | export async function createContext({ req, res }: CreateFastifyContextOptions) { |
| 35 | const cookies = (req as any).cookies as Record<string, string | undefined>; |
| 36 | const setCookie: ISetCookie = (key, value, options) => { |
| 37 | // @ts-ignore |
| 38 | res.setCookie(key, value, { |
| 39 | maxAge: options.maxAge, |
| 40 | signed: options.signed, |
| 41 | ...COOKIE_OPTIONS, |
| 42 | }); |
| 43 | }; |
| 44 | |
| 45 | if (process.env.NODE_ENV !== 'production') { |
| 46 | await new Promise((res) => |
no outgoing calls
no test coverage detected