DeveloperUnsorted
Credentials
Overview
Google Credentials
You need to add your Google OAuth credentials to the .env file in the project root.
Step 1: Get Your Credentials
- Go to Google Cloud Console
- Select your project
- Go to "APIs & Services" → "Credentials"
- Find your OAuth 2.0 Client ID
- Click on it to see the Client ID and Client Secret
- Copy and paste them into your
.envfile
[!IMPORTANT] If you are adding new
Credentials, do
- Add
http://localhost:3000to Authorized JavaScript origins - Add
http://localhost:3000/api/auth/callback/googleto Authorized redirect URIs
Step 2: Add to .env file
Add these lines to your .env file (located at the project root):
# Gmail OAuth Configuration
GOOGLE_CLIENT_ID=your-client-id-here.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret-hereStep 3: Verify Redirect URI
Make sure your OAuth client in Google Cloud Console has this redirect URI:
http://localhost:3000/api/auth/callback/google
GitHub Credentials
TODO
OpenAI Credentials
TODO
Security Note
- Never commit your
.envfile to Git - Keep your credentials secret
- In production, use environment variables from your hosting provider
How is this guide?
Last updated on