From 565ab5a0baa25a860e1eb9cadd4ce7839efe1daf Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Jan 2026 10:55:28 +0530 Subject: [PATCH] cookie issue checking --- app/controllers/auth.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/auth.controller.js b/app/controllers/auth.controller.js index e14e914..2148641 100644 --- a/app/controllers/auth.controller.js +++ b/app/controllers/auth.controller.js @@ -110,7 +110,7 @@ exports.logout = (req, res) => { res.clearCookie("auth_token", { httpOnly: true, secure: process.env.NODE_ENV === "production", - sameSite: "lax", + sameSite: isProd ? "none" : "lax", }); return res.status(200).json({