From 1a3d3906da8bb3d67ea4a3357474dc561c4aeaf1 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Tue, 13 Dec 2022 16:25:19 -0500 Subject: [PATCH] Change jid path --- 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 eb537f2b9..4522af9c6 100644 --- a/backend/src/controllers/authController.ts +++ b/backend/src/controllers/authController.ts @@ -103,7 +103,7 @@ export const login2 = async (req: Request, res: Response) => { // store (refresh) token in httpOnly cookie res.cookie('jid', tokens.refreshToken, { httpOnly: true, - path: '/token', + path: '/', sameSite: 'strict', secure: NODE_ENV === 'production' ? true : false });