Step 1: Create a Project in the Google Cloud Console
- Go to the Google Cloud Console.
- Click on the project drop-down at the top left of the console and select "New Project."
- Enter a name for your project and click "Create."
Step 2: Enable the Google Sign-In API
- In the Cloud Console, navigate to the "API & Services" > "Dashboard."
- Click on the "+ ENABLE APIS AND SERVICES" button.
- Search for "Google Sign-In API" and select it.
- Click on the "Enable" button.
Step 3: Create Credentials
- In the Cloud Console, navigate to "APIs & Services" > "Credentials."
- Click on the "Create Credentials" dropdown and select "OAuth client ID."
- Choose the application type, such as "Web application" for a web app.
- Set the authorized JavaScript origins and redirect URIs based on your application's URLs.
- Click "Create."
Step 4: Obtain Your Client ID and Client Secret
- After creating credentials, you'll see your client ID and client secret.
- Copy and store these securely. Do not expose your client secret.
Important Note:
- Security: Protect your client secret and do not expose it in public repositories or share it publicly.
- Call Back URL: Please use the provided call back URL given.