Skip to content

Conversation

@nihams
Copy link

@nihams nihams commented Oct 18, 2025

Fix allows users to sign in through Google with one click.

Backend Changes:
Installed Dependencies: Added google-auth-library, passport-google-oauth20, and passport packages
Updated User Model: Added googleId field to support Google OAuth users
Created Google OAuth Controller: Added signInWithGoogle function in authController.js
Added Google OAuth Route: Added /api/auth/google endpoint in authRoutes.js

Frontend Changes:
Added Google OAuth Script: Added Google Identity Services script to index.html
Updated Auth Component: Implemented proper Google Sign-In functionality in Auth.jsx
Added API Client Method: Added signInWithGoogle method to apiClient.js

Configuration:
Created Setup Guide: Added GOOGLE_OAUTH_SETUP.md with complete setup instructions

image image image

Solves #137

@vercel
Copy link

vercel bot commented Oct 18, 2025

@nihams is attempting to deploy a commit to the tobhavishya2004-team-alpha Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant