Skip to content

feat: integrate GitHub OAuth and optimize recommendations portal - #485

Merged
Nsanjayboruds merged 2 commits into
Nsanjayboruds:mainfrom
vansh2604-star:integrate-GitHub-OAuth-and-optimize-developer-recommendations-portal--#479---solve
Aug 1, 2026
Merged

feat: integrate GitHub OAuth and optimize recommendations portal#485
Nsanjayboruds merged 2 commits into
Nsanjayboruds:mainfrom
vansh2604-star:integrate-GitHub-OAuth-and-optimize-developer-recommendations-portal--#479---solve

Conversation

@vansh2604-star

Copy link
Copy Markdown

Pull Request

Summary

Integrates GitHub OAuth 2.0 connection and personalization in the developer recommendations portal of RIVETO. This allows users to connect their personal GitHub accounts, bypassing shared backend API rate limits and enabling tailored issue recommendations.

Description

  • Backend Auth Routes: Added /api/auth/github and /api/auth/github/callback routes using OAuth 2.0 flow to retrieve and store user access tokens, and /api/auth/github/profile to retrieve user information from the GitHub API.
  • Token Storage & Encryption: Introduced an AES-256-CBC encryption helper using Node's native crypto module to securely store user credentials in the database, adding githubAccessToken to userModel.
  • Personalized Recommendations: Updated the recommendation service to verify, decrypt, and pass the user's personal GitHub token under headers (falling back to GITHUB_TOKEN if not authenticated).
  • UI Enhancements: Added an animated, modern "Connect GitHub" action button and a synchronized Profile Card showing connected status (username, avatar, repository count) to IssueRecommendations.jsx.

Related Issue

Fixes #479

Type of Change

  • New feature
  • UI/UX improvement

Checklist

  • Code follows project guidelines
  • Tested locally
  • No console errors
  • Documentation updated if required

@vansh2604-star

Copy link
Copy Markdown
Author

I'm sorry for the inconvenience, and thank you for your patience.

@Nsanjayboruds

Copy link
Copy Markdown
Owner

@vansh2604-star RESLOVE THE CONFLITS

@vansh2604-star

Copy link
Copy Markdown
Author

@Nsanjayboruds

Done! I've merged the latest changes and resolved the conflicts. Ready for review.

@Nsanjayboruds

Copy link
Copy Markdown
Owner

@vansh2604-star provide a screenrecording of your change

@vansh2604-star

Copy link
Copy Markdown
Author
Screenshot 2026-07-30 165102 Screenshot 2026-07-30 165138 Screenshot 2026-07-30 165224

@vansh2604-star

vansh2604-star commented Jul 30, 2026

Copy link
Copy Markdown
Author

@Nsanjayboruds

Here are the screenshots showing the GitHub connection flow:

@Nsanjayboruds
Nsanjayboruds merged commit 9e8daca into Nsanjayboruds:main Aug 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: integrate GitHub OAuth and optimize developer recommendations portal

2 participants