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 });