-
Notifications
You must be signed in to change notification settings - Fork 6
🔐 Add GitHub Login (Next.js Only) to Support Private Repositories #39
Copy link
Copy link
Open
Labels
area: ai-logicRelated to Gemini prompts, tokens, or model responses.Related to Gemini prompts, tokens, or model responses.area: backendRelated to Next.js API routes or Octokit/GitHub API.Related to Next.js API routes or Octokit/GitHub API.area: frontendChanges specifically for the UI/Tailwind components.Changes specifically for the UI/Tailwind components.bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationjavascriptTasks involving vanilla JS logic or legacy scripts.Tasks involving vanilla JS logic or legacy scripts.securityVulnerabilities or API key safety concerns.Vulnerabilities or API key safety concerns.typescriptType definition fixes, interfaces, or TS configuration.Type definition fixes, interfaces, or TS configuration.
Metadata
Metadata
Assignees
Labels
area: ai-logicRelated to Gemini prompts, tokens, or model responses.Related to Gemini prompts, tokens, or model responses.area: backendRelated to Next.js API routes or Octokit/GitHub API.Related to Next.js API routes or Octokit/GitHub API.area: frontendChanges specifically for the UI/Tailwind components.Changes specifically for the UI/Tailwind components.bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationjavascriptTasks involving vanilla JS logic or legacy scripts.Tasks involving vanilla JS logic or legacy scripts.securityVulnerabilities or API key safety concerns.Vulnerabilities or API key safety concerns.typescriptType definition fixes, interfaces, or TS configuration.Type definition fixes, interfaces, or TS configuration.
📌 Summary
Currently, ReadmeGenAI only works with public repositories. When a user provides a private repository URL, the app cannot access it and fails to generate a README.
We need to implement GitHub authentication using Next.js only (no separate backend server) to allow access to private repositories.
🎯 Goal
Enable users to log in with GitHub and allow the app to fetch private repository data securely.
🚨 Problem
If a user pastes a private repository URL:
403 Forbidden✅ Expected Behavior
Example message:
💡 Suggested Implementation (Next.js Only)
Recommended Approach: NextAuth
next-authrepofor private repos)🖥 Frontend Changes
🔒 Security Requirements
🧪 Example Scenarios
Case 1: Not Logged In
User pastes private repo URL
→ App prompts login
Case 2: Logged In
User pastes private repo URL
→ README is generated successfully
🎯 Acceptance Criteria