> 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.md).

# Social sign-in

How social sign-in behaves on enrolment forms with Apple, Google, LINE, and Facebook: identification, matching rules, and the customer data returned.

Social sign-in (also called **social login**) lets customers identify themselves on an enrolment form with **Sign in with Apple**, **Google Sign-In**, **LINE Login** or **Facebook Login**. It avoids password creation and reduces duplicates caused by mistyped emails. It works well for mobile flows on iOS and Android.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2F06Z6XAAC62n4md6vEbmF%2Fillustration-social-signin.png?alt=media&#x26;token=09fab1f9-127f-40d4-90d6-0aa8233a223f" alt="Enrolment form screen showing social sign-in buttons above the form fields"><figcaption><p>Place provider buttons above the form fields to encourage one-tap sign-in.</p></figcaption></figure>

<details>

<summary><strong>Real-world examples</strong></summary>

* **In-store QR enrolment:** Customers scan a QR and enrol in one tap.
* **Returning member enrolment:** Match the profile and skip known fields.

</details>

## What it does

The customer taps a provider button. The provider authenticates the customer and returns an identity payload. The Wallet Crew extracts usable attributes from it and applies the configured matching rules.

If a match is found, The Wallet Crew loads the profile and the customer continues as a known customer. If no match is found, the customer continues as new, and a profile is created on submission. One form can serve new and returning customers, and can offer several providers at the same time.

Social sign-in is a strong **identity signal**, not full account security. It proves that the customer controls a provider account. Keep a rule for **account ownership** in the CRM.

## Set up a provider

Setting up a provider takes three steps. The provider pages describe only what is specific to each provider.

1. **Prepare the hosts to allow.** List every host that serves the enrolment form, see [Hosts to allow](#hosts-to-allow).
2. **Configure the provider.** Follow the provider page, then open **Settings → Enrollment → Social sign in** in the admin console, select the provider tab, paste the identifier from the provider and save.
3. **Enable the provider on the enrolment form.** See [Enable a provider on the form](#enable-a-provider-on-the-form).

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-target data-type="content-ref">Setup guide</th><th data-hidden data-card-cover data-type="image">Preview</th></tr></thead><tbody><tr><td align="center"><strong>Google</strong></td><td><a href="https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/google-sign-in.md">Google sign-in</a></td><td><a href="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">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</a></td></tr><tr><td align="center"><strong>Apple</strong></td><td><a href="https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/apple-sign-in.md">Apple sign-in</a></td><td><a href="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FBP9fhwq1Tpq6pxxvW29G%2FApple-Social-Sign-In.png?alt=media&#x26;token=24b7931d-1046-4f99-aff1-b6c4a37d2aab">https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FBP9fhwq1Tpq6pxxvW29G%2FApple-Social-Sign-In.png?alt=media&#x26;token=24b7931d-1046-4f99-aff1-b6c4a37d2aab</a></td></tr><tr><td align="center"><strong>LINE</strong></td><td><a href="https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/line-sign-in.md">LINE sign-in</a></td><td><a href="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FrnwcyjXmmVCc5Ox8KaxD%2FLine-Social-Sign-In.png?alt=media&#x26;token=9bd59ac9-ced4-4396-b440-c6c8a0d88f7f">https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FrnwcyjXmmVCc5Ox8KaxD%2FLine-Social-Sign-In.png?alt=media&#x26;token=9bd59ac9-ced4-4396-b440-c6c8a0d88f7f</a></td></tr><tr><td align="center"><strong>Facebook</strong></td><td><a href="https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/facebook-sign-in.md">Facebook sign-in</a></td><td><a href="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Ftx8p7cIfISOvhdm1PdZP%2FFB-Social-Sign-In.png?alt=media&#x26;token=02655c9d-0d52-4678-9fc7-abc31ef7f79e">https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Ftx8p7cIfISOvhdm1PdZP%2FFB-Social-Sign-In.png?alt=media&#x26;token=02655c9d-0d52-4678-9fc7-abc31ef7f79e</a></td></tr></tbody></table>

### Hosts to allow

Every provider validates the host at runtime. If a customer opens the form on a host that is not allowed, the provider rejects the sign-in. List all of these hosts, then follow the provider page for the exact field (origin, domain or callback URL):

* `https://app.thewalletcrew.io` (production)
* `https://app-qa.thewalletcrew.io` (QA)
* Any **custom domain** used for enrolment forms, exactly as customers see it in the browser. Example: `https://wallet.brand.com`.

The prefix `neostore` is the platform's former name and is kept in technical identifiers.

Where a provider asks for an origin, add the **origin only**: `scheme://host` (and the port if one is used). Paths are not allowed.

* ✅ `https://app.thewalletcrew.io`
* ✅ `https://brand.example.com`
* ❌ `https://app.thewalletcrew.io/acme/mobile`

The person who sets up a provider needs access to the brand's developer account at that provider, with permission to create the application, client or channel.

### Enable a provider on the form

When `signinOptions` is absent from the form, a default set of providers is shown: Apple on iOS, Google on Android, Facebook and Google on desktop. `providers: []` shows none. The recommended path is to list the providers explicitly. Open the form in **Enrollments → Forms**, go to the **Advanced** tab (YAML) and add the provider under `signinOptions.providers`, at the top level of the YAML, next to `form`:

```yaml
signinOptions:
  providers:
    - type: <provider type>
```

| Provider | `type`     | `displayProps`                      |
| -------- | ---------- | ----------------------------------- |
| Apple    | `apple`    | `isMobile: true`, `isIOS: true`     |
| Google   | `android`  | `isMobile: true`, `isAndroid: true` |
| Facebook | `facebook` | none                                |
| LINE     | `line`     | none                                |

The Google provider type is `android` (historical name). `google` is not a valid type.

Provider buttons are hidden in tablet mode and when the customer's email is already known. After a social sign-in, the email field becomes read-only.

For the other form settings, see [Enrolment form](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form.md).

## Matching and data returned

An **email** is usually returned by each provider, but Facebook can omit it. First name and last name depend on the provider: treat names as optional and do not block submission when they are missing. Design matching rules as if only the email is available over time.

* Apple returns names only on the first sign-in, and can return a relay email (**Hide My Email**). See [Apple sign-in](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/apple-sign-in.md).
* Facebook returns no email when the account has no valid email address.

## Design the journey

* Put provider buttons **above** the form fields and make them the default entry path on mobile.
* Skip fields already known for matched customers.
* Keep a fallback such as "Continue with email" next to the provider buttons.
* Offer the providers customers already use in the market. Apple suits iOS-heavy markets, Google suits Android-heavy markets, and LINE is relevant in Japan, Taiwan and Thailand. For programs in several countries, use **separate enrolment forms per region** and enable only the relevant providers on each.
* Keep consents explicit but short, and prefer progressive profiling after enrolment.

## FAQ

<details>

<summary><strong>Can the same customer sign in with different providers?</strong></summary>

Yes, but the result depends on the matching key. Most setups match on email. If Apple and Google return the **same email**, they resolve to the same profile. If they return different emails (relay emails, work versus personal emails), duplicates can appear.

To avoid duplicates, store the provider identifier against the customer in the CRM when possible, and use a second identifier for matching when email is not stable, such as a loyalty ID, a phone number or a one-time code.

</details>

<details>

<summary><strong>Do we still need email verification?</strong></summary>

Usually no, because the provider verifies the email. Keep email verification for high-value accounts and regulated programs, or use step-up verification only when risk is high. Example: social sign-in for enrolment, then a one-time code before account changes or reward redemption.

</details>

<details>

<summary><strong>How should we handle Apple "Hide My Email"?</strong></summary>

Treat Apple relay emails as valid emails that can receive messages, but do not assume they match the email held in the CRM. For Apple-heavy audiences with existing customers, add a second identifier in the flow (membership number, phone number or one-time code), and let the customer confirm it before an existing profile is loaded. Avoid copy like "we found your personal email".

</details>

<details>

<summary><strong>What happens if the customer cancels social sign-in or the provider fails?</strong></summary>

The customer stays unauthenticated and the form falls back to the alternate entry path, for example "Continue with email". Use a specific message such as "Sign-in was canceled" or "Sign-in failed". If failures are frequent, check third-party cookie settings, pop-up blockers and the hosts allowed at the provider.

</details>


---

# 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.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.
