Skip to content

Configure Google Login

This page walks through collecting the OAuth credentials needed to enable Sign in with Google for your app. It explains how to create or configure the required Google project, set up the authentication settings, and obtain the login details your app will use to sign users in securely.

Complete the steps in order. You can skip this guide if you do not plan to offer Google login.

Google Login lets shoppers sign in with their Google account.

A Google account with which you will be managing the login configurations,

Go to console.cloud.google.com and sign in with the Google account associated with your business.

Click the project dropdown at the top of the page, then click New Project.

Enter a project name (for example: “YourStore Mobile App”) and click Create.

Now go to APIs & Services > Library.

Find the OAuth consent screen from the sidebar and click on Get Started.

Now, please give the name of your app and the user support email. Click on next.

In the next screen, please select your audience as external.

In the next step, just select your email as the contact information and click on the checkbox stating that you agree to the Google API Services: User Data Policy. 

Once you have configured the OAuth consent screen, this screen will appear. You need to click on create OAuth client. Follow the following steps for configuring your Android & iOS app.

  1. Navigate to Google Cloud Console → Google Auth Platform → Clients.
  2. Click Create Client.
  3. Select Android as the application type.
  4. Enter:
    • Name: A descriptive name for the client (e.g. MyApp Android)
    • Package Name: Your Android application’s package name
    • SHA-1 Certificate Fingerprint: Your app’s SHA-1 signing certificate fingerprint
  5. Click Create.

Note: If you need help finding your package name or SHA-1 fingerprint, refer to Google’s official documentation.

  1. Navigate to Google Cloud Console → Google Auth Platform → Clients.
  2. Click Create Client.
  3. Select iOS as the application type.
  4. Enter:
    • Name: A descriptive name for the client (e.g. MyApp iOS)
    • Bundle ID: Your iOS application’s bundle identifier
  5. Click Create.

If your app authenticates users through a backend server, you should also create a Web Application OAuth Client ID.

  1. Click Create Client.
  2. Select Web Application.
  3. Enter a descriptive name.
  4. Click Create.

The generated Web Client ID may be required for server-side authentication and token verification.

Once created, Google will generate one or more OAuth Client IDs. Save these values, as they will be required when configuring Google Sign-In within your mobile application.

In the next step, you’ll use these Client IDs to configure Google Sign-In inside your mobile app.

Step 4: Integrate Google Sign-In in Your App

Section titled “Step 4: Integrate Google Sign-In in Your App”

After creating your OAuth Client, you’ll need to copy the credentials required to configure Google Sign-In in your application.

  1. Navigate to Google Cloud Console → Google Auth Platform → Clients.
  2. Select the OAuth Client you created in the previous step.
  3. Copy the following values:
FieldDescription
Client IDUnique identifier used to connect your app with Google’s authentication service.
Client SecretSecret key used to securely authenticate requests between your application and Google.

Enter the following values in your PocketStore > Social Login > Google Sign-In settings:

  • Google Client ID
  • Google Client Secret

1

Keep your Client Secret private and never expose it in publicly accessible code repositories or client-side applications.

2

If your app supports multiple platforms (Android, iOS, Web), ensure you use the credentials associated with the correct OAuth Client.

3

If your Client Secret is compromised, you can generate a new one from the Google Cloud Console.

Once these credentials have been added to your application, Google Sign-In is ready to be enabled.