diff --git a/striker-ui-api/src/lib/request_handlers/auth/login.ts b/striker-ui-api/src/lib/request_handlers/auth/login.ts index 9e687b78..d9f29a93 100644 --- a/striker-ui-api/src/lib/request_handlers/auth/login.ts +++ b/striker-ui-api/src/lib/request_handlers/auth/login.ts @@ -16,8 +16,8 @@ export const login: RequestHandler = ( response.cookie(cname('session'), { expires: session?.cookie?.expires, + user, }); - response.cookie(cname('user'), user); } response.status(204).send(); diff --git a/striker-ui-api/src/lib/request_handlers/auth/logout.ts b/striker-ui-api/src/lib/request_handlers/auth/logout.ts index 08106a4d..41ce263f 100644 --- a/striker-ui-api/src/lib/request_handlers/auth/logout.ts +++ b/striker-ui-api/src/lib/request_handlers/auth/logout.ts @@ -13,7 +13,6 @@ export const logout: RequestHandler = (request, response) => { response.clearCookie(cname('session')); response.clearCookie(cname('sid')); - response.clearCookie(cname('user')); return response.status(204).send(); });