Skip to content

Restrict NextAuth debug mode to development only - #81

Closed
shammy911 with Copilot wants to merge 2 commits into
KavinduSDfrom
copilot/sub-pr-79-again
Closed

shammy911 with Copilot wants to merge 2 commits into
KavinduSDfrom
copilot/sub-pr-79-again

Conversation

Copilot AI commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

debug: true was hardcoded in the NextAuth config, causing verbose internal logs to be emitted in production — a potential source of information leakage.

Change

  • app/api/auth/[...nextauth]/route.ts: Gate the debug flag on NODE_ENV:
// Before
debug: true,

// After
debug: process.env.NODE_ENV === "development",

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: shammy911 <180457932+shammy911@users.noreply.github.com>
Copilot AI changed the title [WIP] [WIP] Address feedback from PR #79 on "Kavindu sd" changes Restrict NextAuth debug mode to development only Mar 20, 2026
Copilot AI requested a review from shammy911 March 20, 2026 06:12
@shammy911
shammy911 marked this pull request as ready for review March 20, 2026 06:29
@shammy911 shammy911 closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants