Email Gateway Configuration

Current Settings
GOOGLE_CLIENT_ID Missing
GOOGLE_CLIENT_SECRET Missing
GOOGLE_REDIRECT_URI http://localhost/api/oauth/google/callback Set
Action Required

The following settings are missing in your .env file:

  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET

Google Cloud Console Instructions:
  1. Go to the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Enable the Gmail API.
  4. Go to APIs & Services > OAuth consent screen and configure it (External, add scopes if needed).
  5. Go to APIs & Services > Credentials.
  6. Click Create Credentials > OAuth client ID.
  7. Select Web application.
  8. Add Authorized redirect URIs: http://localhost/api/oauth/google/callback
  9. Copy the Client ID and Client Secret to your .env file.
Local Development with Ngrok

To test Google OAuth locally, it is recommended to use ngrok so Google can redirect back to your machine.

ngrok http 8081

Then, update your APP_URL and GOOGLE_REDIRECT_URI in .env with the ngrok URL.