chore(cookies): debug (revert this)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-19 21:38:57 +01:00
parent 1883ec2170
commit f28802b1c2
6 changed files with 113 additions and 16 deletions

View File

@@ -15,14 +15,7 @@ export function createContext({ req, res }: CreateFastifyContextOptions) {
session: getAuth(req),
// we do not get types for `setCookie` from fastify
// so define it here and be safe in routers
setCookie: (
key: string,
value: string,
options: {
maxAge: number;
path: string;
},
) => {
setCookie: (key: string, value: string, options: any) => {
// @ts-ignore
res.setCookie(key, value, options);
},