feat: bring-your-own-token (BYOT) support for GitHub PAT (closes #5 partial)#16
Open
Ys876 wants to merge 1 commit into
Open
feat: bring-your-own-token (BYOT) support for GitHub PAT (closes #5 partial)#16Ys876 wants to merge 1 commit into
Ys876 wants to merge 1 commit into
Conversation
|
@Ys876 is attempting to deploy a commit to the repomindagent-7990's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Closes #5 (partial, implements the "Bring Your Own Token" flow; OAuth login left for a separate PR)
What this adds
Users can now paste a GitHub Personal Access Token (PAT) directly in the header to:
reposcope)Changes
New files
src/lib/use-github-token.ts—useGitHubTokenhook that reads/writes the PAT inlocalStorage. Token is never logged or sent to analytics.src/components/GitHubTokenModal.tsx— modal UI for entering, verifying, and clearing the PATModified files
src/components/AuthButton.tsx— adds a token indicator button ("Add token" / "Your token") that opens the modal. Works for both signed-in and anonymous users.Security guarantees
localStorage— no server persistence, no analyticstype="password"by default, with a show/hide toggle/useron the GitHub API directly from the browser before being saved — never touches the serverTesting
What's left from #5
The BYOT flow is self-contained and ships immediate value to users hitting rate limits.