Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Change jid path

Tuan Dang1a3d3906da8b
diff --git a/backend/src/controllers/authController.ts b/backend/src/controllers/authController.ts
index eb537f2b98..4522af9c65 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
});