Skip to content

Conversation

@nihams
Copy link

@nihams nihams commented Oct 18, 2025

Feature: Google OAuth Signup Integration
Added Google OAuth authentication to the signup page, allowing users to register with their Google account in one click.

Changes Made

  • Added Google Sign-In button to signup form with consistent styling.Uses Passport.js with Google OAuth 2.0 strategy
  • Added OAuth error handling to display user-friendly error messages
  • Added error boundary to prevent React crashes during OAuth flow
  • Enhanced OAuth error handling with detailed logging
  • Made email sending non-blocking to prevent OAuth failures
  • Added environment variable guards to prevent server crashes

Functionality

Consistent User Model: OAuth and manual users have consistent schema
Token Management: Secure JWT token handling for OAuth users
Error Handling: User-friendly error messages for OAuth failures
Fallback Mechanisms: Graceful handling of database permission issues

Testing

  • Google OAuth flow works end-to-end
  • Error handling for failed authentication
  • Proper redirects and token management
  • No breaking changes to existing functionality
image image image image

Solves #550

@netlify
Copy link

netlify bot commented Oct 18, 2025

👷 Deploy request for codifylearn pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c08eed8

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. Thank you @Roshansuthar1105 🙌🏼

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