Google OAuth Setup
Last updated
Last updated
Go to the Google Cloud Console and sign in with your Google account
Click New Project, enter the Project Name, choose the Location (optional), and then click Create
In your project dashboard, click on APIs & Services
From the left sidebar, select OAuth consent screen, choose External, and then click Create
Complete all the required app information as shown in the image below
Click Add or remove scopes, select the Email, Profile and Openid scopes, and then click Save. Refer to the image below for guidance
Leave the Test users section empty and click Save and Continue
Review all the information and click Back to Dashboard
From the left sidebar, click on Credentials, then click + Create Credentials and select OAuth client ID
In the application type section, choose Web application and name your OAuth client. Next, click Add URI and enter your website link followed by /google/callback. Finally, save your changes to complete the setup
After clicking Save, a popup will appear; copy your Client ID and Client Secret
Now, go back to the OAuth consent screen in the left sidebar, click Publish App, and confirm your action
Open your cPanel, navigate to File Manager, locate the core folder, edit the .env file, and insert your Client ID and Client Secret. See the image below for reference