feat: Add Google & GitHub Authentication and fix backend stability issues#370
feat: Add Google & GitHub Authentication and fix backend stability issues#370Dev1822 wants to merge 5 commits into
Conversation
|
@Dev1822 is attempting to deploy a commit to the anubhav12302387's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ PR Format Check — PassedHi @Dev1822! Your PR passed all automated checks and is now queued for mentor review. 🎉 ✅ Checks Passed
📋 EventOne PR Guidelines (click to expand)Title format — Conventional Commits: Always link an issue: Use a feature branch — never PR directly from Write your own description — AI-generated content = EventOne × GSSoC Pipeline — Stage 1 Automated Check |
👋 Thanks for opening a PR, @Dev1822!Your PR has entered the 🎯 EventOne GSSoC PR Review Pipeline.
What happens next
A pipeline status comment will appear below and update automatically as your PR progresses. While you wait
This comment is posted only once. EventOne × GSSoC Automated Pipeline |
|
Hello @anubhavxdev , It has been 4 days since I have created this PR. Kindly give me any update on this or suggest me any changes if needed. |
Closes #357
Overview
This PR introduces third-party OAuth support by integrating both Google and GitHub authentication into the Sign-In and Sign-Up flows. It also resolves a series of critical backend syntax errors and misconfigurations that were causing the server to crash on startup.
Key Changes
🌟 Features
@react-oauth/googleto allow users to sign up and log in using their Google accounts.🐛 Bug Fixes
server.js,socket.js,registrationRoutes.js, etc.) by fixing syntax errors and resolving undefined variable references.connectDB()initialization inserver.js.useRefflags to prevent React 18's StrictMode from executing the GitHub OAuth callback twice.Testing Steps
To verify these changes, reviewers should follow these steps:
.envfor the backend:GOOGLE_CLIENT_ID,GITHUB_CLIENT_ID, andGITHUB_CLIENT_SECRET..envfor the frontend:VITE_GOOGLE_CLIENT_ID,VITE_GITHUB_CLIENT_ID./signupand attempt to create an account via the "Continue with Google" button. Verify successful redirection and account creation./loginand attempt to sign in via the "Continue with GitHub" button. Verify successful sign-in.