Prerequisites
- A Google Cloud Platform (GCP) account
- A GCP project with the Google+ API enabled
Setup Steps
- Go to the Google Cloud Console.
- Select your project or create a new one.
- Navigate to “APIs & Services” > “Credentials”.
- Click “Create Credentials” and select “OAuth client ID”.
- Choose “Web application” as the application type.
- Set the authorized redirect URI to
https://your-domain.com/api/auth/callback/google
. - Click “Create” to generate your client ID and client secret.
Configuration
To enable Google authentication, you need to set the following environment variables:Your Google OAuth client ID obtained from the Google Cloud Console
Your Google OAuth client secret obtained from the Google Cloud Console