From 0e7bc76c50a1d628c114011ca328ea4c2a2747cf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 06:32:08 +0000 Subject: [PATCH 1/2] Initial plan From 84683bc0a4dc07597959c09588147817bf9ed3e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 06:33:02 +0000 Subject: [PATCH 2/2] fix: enable NextAuth debug only in development environment Co-authored-by: shammy911 <180457932+shammy911@users.noreply.github.com> --- app/api/auth/[...nextauth]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 28c8439..1d690a5 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -188,7 +188,7 @@ export const authOptions = { }, }, - debug: true, + debug: process.env.NODE_ENV === "development", secret: process.env.NEXTAUTH_SECRET, };