Before we can let users sign in to our app with Google, we need to register the app with Google.
Go to the Google Cloud Platform console.
From the projects list, select a project or create a new one.
If you have an existing application, it will be listed under OAuth 2.0 Client IDs. Click Edit OAuth client to obtain the client ID and secret, and proceed to configure the strategy. Otherwise, continue.
If you have not already done so, configure the OAuth consent screen. Select External to make your application available to any user with a Google account. Complete the app registration process by entering the app name, support email, and developer contact information.
Click Create Credentials, then select OAuth client ID.
Select Web application as Application type.
Click Add URI under Authorized Redirect URIs. Enter
Click Create to create the OAuth client. The following screen will display your client ID and secret. Proceed to configure the strategy.