LogoThreatmatic
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

  1. Go to Google Cloud Console
  2. Select your project
  3. Go to "APIs & Services" → "Credentials"
  4. Find your OAuth 2.0 Client ID
  5. Click on it to see the Client ID and Client Secret
  6. Copy and paste them into your .env file

[!IMPORTANT] If you are adding new Credentials, do

  1. Add http://localhost:3000 to Authorized JavaScript origins
  2. Add http://localhost:3000/api/auth/callback/google to 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-here

Step 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 .env file to Git
  • Keep your credentials secret
  • In production, use environment variables from your hosting provider

How is this guide?

Last updated on

On this page