-
Notifications
You must be signed in to change notification settings - Fork 6
Support user-provided GitHub tokens for accessing private gists #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Co-authored-by: CNSeniorious000 <74518716+CNSeniorious000@users.noreply.github.com>
Co-authored-by: CNSeniorious000 <74518716+CNSeniorious000@users.noreply.github.com>
PR Change SummaryImplemented support for user-provided GitHub tokens to access private gists, enhancing token management and API integration.
Added Files
How can I customize these reviews?Check out the Hyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
f843396 to
3c3b858
Compare
31563be to
2590220
Compare
263cfd3 to
99ecd7b
Compare
0dafc1f to
4cbbea5
Compare
bad1c75 to
3a489f6
Compare
96383b8 to
5f9a338
Compare
Fixes #90
GitHub OAuth Apps cannot access secret/private gists due to platform limitations. This PR implements support for user-provided GitHub personal access tokens to enable access to private gists.
What's Changed
Core Features
User Experience Improvements
Implementation Details
Files Added/Modified
src/lib/user-token.ts- Token storage and validation logicsrc/lib/components/GitHubTokenManager.svelte- Token management UIsrc/routes/(workspace)/gist/+server.ts- Enhanced gist listing APIsrc/routes/(workspace)/gist/[gist_id]/+server.ts- Enhanced individual gist APIsrc/routes/(workspace)/+error.svelte- Improved error handling for private gistsTESTING_GITHUB_TOKENS.md- Comprehensive testing guideHow to Use
/gist)gistscopeSecurity Considerations
This implementation maintains full backward compatibility while enabling access to private gists that were previously inaccessible through the OAuth flow.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.