Switch GitHub auth from PAT to OAuth and show landing page without login#10
Open
ThallesP wants to merge 2 commits into
Open
Switch GitHub auth from PAT to OAuth and show landing page without login#10ThallesP wants to merge 2 commits into
ThallesP wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the manual personal-access-token flow with a popup OAuth flow using the OAuth App client ID. The landing page is now visible without auth, with an AuthGate blocking repo/chat routes until sign-in. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@ThallesP is attempting to deploy a commit to the personal Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Ov23livjmqBTVj8aRNhC). Users now click "Sign in with GitHub" and authorize via popup instead of generating and pasting a fine-grained PAT.AuthGate, so users can see what the app is before signing in.parseTokenResponsenow handles regular OAuth App responses (non-expiring tokens, no refresh token) instead of requiring GitHub App fields (refresh_token,expires_in)./api/github-tokenNitro route that injectsGITHUB_CLIENT_SECRETserver-side for the OAuth token exchange.GithubRepoNoTokenMetacomponent,validateGithubPersonalAccessToken,GITHUB_CREATE_PAT_URL, and the deletedgithub-token.test.ts. Updated rate-limit toast messages to no longer reference "Add token".demo:
https://github.com/user-attachments/assets/4234bb88-ceeb-4fe1-ad8e-91f328294b58
Test plan
root-guard,bash-tool,github-fetch)🤖 Generated with Claude Code
took the time to publish just-github onto npm so we can separate it from here