Skip to content

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

fix(auth): add nonce check for Cognito NextAuth provider (#4401)

Cole Winstanley98e29cb51221
diff --git a/web/src/server/auth.ts b/web/src/server/auth.ts
index bd3c90af04..5d66d10399 100644
--- a/web/src/server/auth.ts
+++ b/web/src/server/auth.ts
@@ -263,6 +263,7 @@ if (
clientId: env.AUTH_COGNITO_CLIENT_ID,
clientSecret: env.AUTH_COGNITO_CLIENT_SECRET,
issuer: env.AUTH_COGNITO_ISSUER,
+ checks: "nonce",
allowDangerousEmailAccountLinking:
env.AUTH_COGNITO_ALLOW_ACCOUNT_LINKING === "true",
}),