Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: revert cookie workaround after auth misconfiguration (#11427)

Steffen Schmitz95394b39aa5e
diff --git a/web/src/pages/api/auth/[...nextauth].ts b/web/src/pages/api/auth/[...nextauth].ts
index 07636f6c4d..d78f3c17b1 100644
--- a/web/src/pages/api/auth/[...nextauth].ts
+++ b/web/src/pages/api/auth/[...nextauth].ts
@@ -49,13 +49,5 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
res.setHeader("Pragma", "no-cache");
res.setHeader("Expires", "0");
- // Clean up the cookie from incident: https://status.langfuse.com/incident/770854
- if (env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION) {
- res.setHeader(
- "Set-Cookie",
- `__Secure-next-auth.session-token.${env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION}=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly; Secure; SameSite=Lax; Max-Age=0`,
- );
- }
-
return await NextAuth(req, res, authOptions);
}