> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/google-sign-in.md).

# Google sign-in

Configure Google Sign-In (OAuth 2.0 Client ID) and connect it to The Wallet Crew social sign-in.

Use this page to enable the **Google** button in an enrolment form. Read [Social sign-in](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md) first for the customer flow, the [hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow) and the way to [enable a provider on the form](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form).

<div data-with-frame="true"><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FzfVT9pePqimlWGvzej2B%2FGoogle-Social-Sign-In.png?alt=media&#x26;token=f53cebf5-739a-42ee-8103-ed85247e6a6e" alt="Enrolment form with a Google sign-in button" width="375"><figcaption><p>Connect with Google in an enrolment form example</p></figcaption></figure></div>

## What is set up here

* A **Google OAuth 2.0 Client ID** in the brand's **Google Cloud Console** project (permission to create OAuth 2.0 Client IDs is required).
* **Authorized JavaScript origins** for the enrolment form hosts.
* The Client ID stored in the admin console.

## Configure Sign in with Google

{% stepper %}
{% step %}

### Open Credentials

Open the Google Cloud Console **Credentials** page:

<p align="center"><a href="https://console.cloud.google.com/apis/credentials" class="button secondary" data-icon="chevrons-right">Google Credential page</a></p>
{% endstep %}

{% step %}

### Create a Web application OAuth client

1. Click **Create credentials → OAuth client ID**.
2. Choose application type: **Web application**.
3. Set a name. Example: `Wallet Crew login`.
   {% endstep %}

{% step %}

### Configure origins

Add every host listed in [Hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow) as an **Authorized JavaScript origin**.

Leave **Authorized redirect URIs** empty.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fx3PsBEB2MtC5fKa0XShX%2Fenroll-google-sign-google-oauth-client-settings.png?alt=media&#x26;token=92554f52-1803-48c7-b621-0ceb66c4cb19" alt="Google OAuth client settings with the authorized origins listed"><figcaption><p>Check that every origin is listed and that the redirect URI list is empty.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Google Sign-In for web uses the **Client ID**. It is safe to paste it in the admin console.

Do not share any Google **client secret**. One is not needed for this flow.
{% endhint %}

## Configure Google in The Wallet Crew

1. Open **Settings → Enrollment → Social sign in → Google** in the admin console.

<p align="center"><a href="https://admin.thewalletcrew.io/tenant/~/settings/social-sign-in/google" class="button secondary" data-icon="chevrons-right">Social sign in → Google</a></p>

<div data-with-frame="true"><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-894ea16c17769f89ebeca6f897d5dfb8677670c9%2Fsocial-sign-in-google-settings-single-frame.png?alt=media" alt="Google tab of the Social sign in settings in the admin console"><figcaption><p>The Wallet Crew - Google Social Sign In configuration</p></figcaption></figure></div>

2. Paste the **Client ID** from Google.
3. Save.

## Enable Google on the enrolment form

Add the provider to the form as described in [Enable a provider on the form](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form), with this block. The Google provider type is `android` (historical name); `google` is not a valid type.

```yaml
signinOptions:
  providers:
    - type: android
      displayProps:
        isMobile: true
        isAndroid: true
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/google-sign-in.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
