Google OAuth Authentication
Allow users to sign in with their Google accounts for a seamless authentication experience. Google OAuth provides social login integration with zero password management overhead.Features
- ✅ One-click social login
- ✅ No password management required
- ✅ Automatic user profile information
- ✅ Works alongside email/password authentication
- ⚠️ Requires Google Cloud setup
Required Environment Variables
Setup Guide
1. Create Google OAuth Credentials
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Google+ API
- Navigate to Credentials → Create Credentials → OAuth client ID
- Choose Web application
2. Configure Authorized Redirect URIs
Add the following redirect URIs to your OAuth client: For Development:The redirect URI must match exactly, including protocol (http/https) and port. Trailing slashes matter!
3. Get Your Credentials
- After creating the OAuth client, you’ll see a modal with your credentials
- Copy the Client ID (ends with
.apps.googleusercontent.com) - Copy the Client Secret (starts with
GOCSPX-) - Store these securely - never commit them to version control