Skip to main content
OAuth configuration for Google services integration including Gmail, Google Drive, and Google Calendar.

OAuth Setup

1. Create Google Cloud Project

  1. Visit console.cloud.google.com
  2. Click “Select a project” → “New Project”
  3. Enter project name and click “Create”

2. Enable APIs

  1. Go to APIs & ServicesLibrary
  2. Enable required APIs:
    • Google+ API (profile access)
    • Gmail API (email access)
    • Google Drive API (file access)
    • Google Calendar API (calendar access)
  1. Go to APIs & ServicesOAuth consent screen
  2. Choose “External” user type
  3. Fill required fields:
    • App name
    • User support email
    • Developer contact email
    • Authorized domains
  4. Add scopes: userinfo.email, userinfo.profile

4. Create OAuth Credentials

  1. Go to APIs & ServicesCredentials
  2. Click “Create Credentials”“OAuth client ID”
  3. Select “Web application”
  4. Add redirect URI:
    https://yourexampledomain.com/auth/google/callback
    

5. Environment Variables

Add to your .env file:
GOOGLE_CLIENT_ID=your-client-id.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret

Production Verification

For production use, submit for Google verification:
  1. Go to OAuth consent screen → “Publish App”
  2. Provide required documentation:
    • Privacy Policy URL
    • Terms of Service URL
    • App homepage URL
  3. Complete security assessment
  4. Wait 1-7 days for review
I