Skip to content

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

update password reset

Maidul Islam8e5debca90a3
diff --git a/backend/src/server/routes/v1/password-router.ts b/backend/src/server/routes/v1/password-router.ts
index c94e5d4cb5..316ddcb538 100644
--- a/backend/src/server/routes/v1/password-router.ts
+++ b/backend/src/server/routes/v1/password-router.ts
@@ -65,7 +65,7 @@ export const registerPasswordRouter = async (server: FastifyZodProvider) => {
const appCfg = getConfig();
await server.services.password.changePassword({ ...req.body, userId: req.permission.id });
- void res.cookie("jid", appCfg.COOKIE_SECRET_SIGN_KEY, {
+ void res.cookie("jid", "", {
httpOnly: true,
path: "/",
sameSite: "strict",