Fix OAuth authentication: Add missing redirect_uri parameter - #112
Merged
Merged
Conversation
- Add redirect_uri parameter to GitHub OAuth authorization URL - Improve error handling for expired OAuth codes with specific messaging - Add comprehensive logging for OAuth debugging - Resolves 'The code passed is incorrect or expired' error The main issue was that the OAuth authorization request was missing the redirect_uri parameter, which GitHub requires to match exactly what's configured in the OAuth app settings. This caused authentication failures and the 'incorrect or expired' error message.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
/approve |
Contributor
|
🚀 Admin-Approved and Auto-Merged! |
This was referenced Oct 8, 2025
ishaileshpant
added a commit
that referenced
this pull request
Oct 8, 2025
- Keep the original working OAuth code without redirect_uri parameter - This restores the working authentication state from before PR #112 - Resolves conflicts between revert and main branch changes
github-actions Bot
added a commit
that referenced
this pull request
Oct 8, 2025
…king authentication Admin-approved by @ishaileshpant PR: #115
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Fix OAuth Authentication Issue
Problem
Users were experiencing "Authentication Failed" errors with the message "The code passed is incorrect or expired" when trying to authenticate with GitHub OAuth.
Root Cause
The OAuth authorization request was missing the
redirect_uriparameter, which GitHub requires to match exactly what's configured in the OAuth app settings.Solution
redirect_uriparameter to the GitHub OAuth authorization URLChanges Made
github-auth.js:redirect_uriparameter to OAuth authorization URLTechnical Details
Testing
Impact
Closes: OAuth authentication failures