Google OAuth Configuration

This page provides instructions for configuring Google OAuth to enable Google Sign-In.

Step 1: Create a Google Cloud Project

  1. Go to the Google Cloud Console
  2. Create a new project or select an existing one
  3. Navigate to "APIs & Services" > "Credentials"

Step 2: Configure OAuth Consent Screen

  1. Select "OAuth consent screen" from the top menu
  2. Choose "External" user type (unless you're in an organization)
  3. Fill in the required App information (App name, user support email, etc.)
  4. Add required scopes: .../auth/userinfo.email, .../auth/userinfo.profile, and openid
  5. Complete the remaining steps and save

Step 3: Create OAuth Client ID

  1. Select "Credentials" from the left menu
  2. Click "Create Credentials" > "OAuth client ID"
  3. Select "Web application" as the application type
  4. Add a name for your client ID
  5. Add the following authorized JavaScript origins:
  6. Add the following authorized redirect URI:
  7. 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