From c33b043f5f2c0e44a927f31fb1474649454ec770 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 13 Dec 2022 18:54:45 -0500 Subject: [PATCH] remove cookie path temporary --- backend/src/controllers/authController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/controllers/authController.ts b/backend/src/controllers/authController.ts index 4522af9c6..20ac813d4 100644 --- a/backend/src/controllers/authController.ts +++ b/backend/src/controllers/authController.ts @@ -147,7 +147,7 @@ export const logout = async (req: Request, res: Response) => { // clear httpOnly cookie res.cookie('jid', '', { httpOnly: true, - path: '/token', + path: '/', sameSite: 'strict', secure: NODE_ENV === 'production' ? true : false });