First, you'll need to get a Google Client ID. Follow these steps:
-
Visit https://console.cloud.google.com/
-
Create a new project or select an existing one.
-
In the left sidebar, go to "APIs & Services" > "OAuth consent screen".
-
Configure the consent screen: select "External" user type, enter your app name, user support email, and developer contact email, then click "Save and Continue".
-
Skip the "Scopes" step (or add scopes if needed) and click "Save and Continue".
-
Add test users if needed, then click "Save and Continue".
-
In the left sidebar, go to "Credentials" and click "Create Credentials" > "OAuth client ID".
-
Select "Web application" as the application type.
-
Add your site URL to "Authorized JavaScript origins": {{siteUrl}}
-
Add to "Authorized redirect URIs": {{siteUrl}}_oauth/google
-
Click "Create" and note down your "Client ID" and "Client Secret" from the popup.