OAuth Setup
1. Create Google Cloud Project
- Visit console.cloud.google.com
- Click “Select a project” → “New Project”
- Enter project name and click “Create”
2. Enable APIs
- Go to APIs & Services → Library
- Enable required APIs:
- Google+ API (profile access)
- Gmail API (email access)
- Google Drive API (file access)
- Google Calendar API (calendar access)
3. Configure OAuth Consent Screen
- Go to APIs & Services → OAuth consent screen
- Choose “External” user type
- Fill required fields:
- App name
- User support email
- Developer contact email
- Authorized domains
- Add scopes:
userinfo.email
,userinfo.profile
4. Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click “Create Credentials” → “OAuth client ID”
- Select “Web application”
- Add redirect URI:
5. Environment Variables
Add to your.env
file:
Production Verification
For production use, submit for Google verification:- Go to OAuth consent screen → “Publish App”
- Provide required documentation:
- Privacy Policy URL
- Terms of Service URL
- App homepage URL
- Complete security assessment
- Wait 1-7 days for review