Skip to content

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

fix: clear aod cookie on sign out

sidwebworksc5c2e2619ea7
diff --git a/backend/src/server/routes/v1/auth-router.ts b/backend/src/server/routes/v1/auth-router.ts
index e7c06ff51c..a91548285c 100644
--- a/backend/src/server/routes/v1/auth-router.ts
+++ b/backend/src/server/routes/v1/auth-router.ts
@@ -42,6 +42,14 @@ export const registerAuthRoutes = async (server: FastifyZodProvider) => {
maxAge: 0
});
+ void res.cookie("aod", "", {
+ httpOnly: false,
+ path: "/",
+ sameSite: "lax",
+ secure: appCfg.HTTPS_ENABLED,
+ maxAge: 0
+ });
+
return { message: "Successfully logged out" };
}
});