fix(oauth): trim GitHub OAuth client id and secret from env#181
fix(oauth): trim GitHub OAuth client id and secret from env#181jony376 wants to merge 2 commits into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds ChangesGitHub OAuth Environment Variable Trimming
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/app/api/auth/github/callback/route.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. src/app/api/auth/github/login/route.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox. Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for your contribution! I am closing the PR since the issue is not currently happening. It is just a small defensive hardening fix for future copy/paste or quoted-env mistake. |
Summary
Trim
GITHUB_OAUTH_CLIENT_IDandGITHUB_OAUTH_CLIENT_SECRETbefore OAuth authorize and token exchange.Related Issues
Closes #179
Type of Change
Testing
Checklist
Summary by CodeRabbit