repomind icon indicating copy to clipboard operation
repomind copied to clipboard

Private repo access via OAuth + “bring your own GitHub token” flow

Open Joexiaohongchen opened this issue 10 months ago • 1 comments

Description Goal: Allow users to analyze private repositories securely.

Scope:

  • Add OAuth GitHub login (web flow) with minimal scopes.
  • Enable “Bring Your Own Token” input stored only in browser storage.
  • Use user token for GitHub API calls instead of server token when present.
  • Update UI to indicate which auth mode is active.
  • Handle rate limits and permission errors gracefully.

Acceptance criteria:

  • User can authenticate and load a private repo by owner/name.
  • User can paste a PAT and access private repos without OAuth.
  • Tokens are never logged or sent to analytics.
  • Clear error messages for missing permissions.

Notes:

  • Consider adding a toggle to prefer user token over server token.

Joexiaohongchen avatar Jan 26 '26 18:01 Joexiaohongchen

Hi! I've opened PR #16 for the BYOT part of this issue. The OAuth flow is scoped for a follow-up. Would love a review!

Ys876 avatar Jun 24 '26 18:06 Ys876