Skip to content

Add dev-mode auth bypass for local testing#84

Merged
5queezer merged 1 commit intomainfrom
feat/dev-auth-bypass
Mar 20, 2026
Merged

Add dev-mode auth bypass for local testing#84
5queezer merged 1 commit intomainfrom
feat/dev-auth-bypass

Conversation

@5queezer
Copy link
Copy Markdown
Owner

@5queezer 5queezer commented Mar 20, 2026

Summary

  • When NODE_ENV=development and no valid session/token exists, requireAuth() returns a fake admin user instead of null
  • Skips the OAuth redirect loop so the app is usable on localhost:3001 without Google OAuth configured
  • No effect in production — the bypass only activates in development mode

Test plan

  • Run npm run dev and visit http://localhost:3001 without any OAuth session
  • Verify dashboard loads with "Dev User" identity
  • Verify production builds still redirect to /login when unauthenticated

🤖 Generated with Claude Code

When NODE_ENV=development and no valid session exists, returns a
fake admin user instead of null, avoiding the OAuth redirect loop.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@5queezer 5queezer merged commit f3f8241 into main Mar 20, 2026
2 checks passed
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.

1 participant