Google OAuth Configuration
This page provides instructions for configuring Google OAuth to enable Google Sign-In.
Step 1: Create a Google Cloud Project
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Navigate to "APIs & Services" > "Credentials"
Step 2: Configure OAuth Consent Screen
- Select "OAuth consent screen" from the top menu
- Choose "External" user type (unless you're in an organization)
- Fill in the required App information (App name, user support email, etc.)
- Add required scopes:
.../auth/userinfo.email
,.../auth/userinfo.profile
, andopenid
- Complete the remaining steps and save
Step 3: Create OAuth Client ID
- Select "Credentials" from the left menu
- Click "Create Credentials" > "OAuth client ID"
- Select "Web application" as the application type
- Add a name for your client ID
-
Add the following authorized JavaScript origins:
-
Add the following authorized redirect URI:
- Click "Create"
Step 4: Configure Application Secrets
Important: Add the Client ID and Client Secret to your application's environment variables:
- GOOGLE_OAUTH_CLIENT_ID: Your OAuth client ID Configured
- GOOGLE_OAUTH_CLIENT_SECRET: Your OAuth client secret Configured