Help home
Using the app
Heartisan Studio
Setup & settings
Back to heartisan.app
Client portal

Social sign-in (Google, Microsoft, Apple)

For admins

As well as email and password, members can sign in with Google, Microsoft or Apple. It removes the “I've forgotten my password” problem almost entirely, which is the single biggest reason people give up on an app.

The social sign-in settings showing the Google, Microsoft and Apple client id fields.
One box per provider. An empty box means that button never appears.

Configure these on Settings → Payments & Sign-in, under Social sign-in.

The client IDs you enter here must match the ones built into your app. If you're setting this up for the first time, talk to us before generating new IDs — a mismatch stops social sign-in working entirely.

The addresses you'll be asked to register

Every provider below wants to know where a sign-in may come back to, and every one of them matches what you type character for character. These are the values for your app — copy them from here rather than typing them out.

Member website
https://your-site.heartisan.app
Bundle ID / package name
com.yourchurch.app — the same value on iPhone, iPad and Android.
Google — authorised JavaScript origin
https://your-site.heartisan.app (no redirect URI is needed).
Microsoft — redirect URI, website
https://your-site.heartisan.app/signin-microsoft.html — added as a Single-page application.
Microsoft — redirect URI, apps
hbapp://auth — added under Mobile and desktop applications, and the same on every platform.
Apple — domain to verify
your-site.heartisan.app
Apple — return URL
https://your-site.heartisan.app/ — including the trailing slash.
Those are examples. Open this guide from the Help link in your dashboard and every value on this page becomes your own — that address has your organisation id in it, so you can bookmark it or send it to whoever is doing the setup.
Using your own domain for the member website? Register that address instead of the heartisan.app one everywhere below — or register both, which is what we'd suggest while you're moving over.

Google

One Google Cloud project holds everything: one Web client ID that every platform's sign-in is validated against, plus a registration per app you ship.

  1. Go to the Google Cloud Console and select or create your project. A Firebase project counts — it is a Cloud project.
  2. Fill in APIs & Services → OAuth consent screen. While its publishing status is Testing, only accounts listed under Test users can sign in, so publish it before members do.
  3. Open APIs & Services → Credentials → Create credentials → OAuth client ID → Web application.
  4. Under Authorised JavaScript origins, add https://your-site.heartisan.app. Leave the redirect URIs empty — the website uses Google Identity Services, which hands the token back to the page instead of redirecting.
  5. Copy the client ID (it ends .apps.googleusercontent.com) into the Google Client ID(s) box in the portal, and save.

Then register each app you ship, in the same project:

AppCreateGoogle asks forWhat to do with the result
Android OAuth client ID → Android Package name com.yourchurch.app, plus your SHA-1 fingerprint Nothing — don't paste this one into the portal, it is never checked.
iPhone / iPad OAuth client ID → iOS Bundle ID com.yourchurch.app Paste it into Google iOS Client ID, then ask us for a new iOS build.
Windows OAuth client ID → Desktop app A name, and nothing else Paste it into Google Desktop Client ID (Windows). No new build needed.
The Android fingerprint must be the app signing certificate, not your upload key. Find it in Play Console under Test and release → Setup → App integrity → App signing key certificate. Google Play re-signs every download with the signing key, so the upload key is not what ends up on anyone's phone — and registering the wrong one fails silently.

Microsoft

  1. Go to the Microsoft Entra admin centre and register a new application.
  2. Open Manage → Authentication and add a platform → Single-page application, with the redirect URI https://your-site.heartisan.app/signin-microsoft.html.
  3. Add a platform → Mobile and desktop applications, and under Custom redirect URIs type hbapp://auth. That one address covers Android, iPhone, iPad and Windows.
  4. Copy the Application (client) ID into the Microsoft Client ID box in the portal, and save.
Which platform each address sits under is not cosmetic. Put the website address under Web instead of Single-page application and Microsoft decides your site can keep a password, then refuses every sign-in (AADSTS9002326). The app address under Web fails the same way (AADSTS7000218). Never create a client secret — nothing in Heartisan sends one, and being asked for one means an address is under the wrong platform.

Apple

Apple treats your app and your website as two separate clients, so the app half and the web half are set up differently. The box in the portal holds both.

For the app

  1. In the portal, click Turn on for the app beside Apple Client ID(s). It fills in your bundle ID (com.yourchurch.app) for you.
  2. Ask us for a new iOS build — the permission is baked into the signed app.

For the member website

  1. In your Apple Developer account, go to Certificates, Identifiers & Profiles → Identifiers and create a Services ID. Give it an identifier that differs from your bundle ID — com.yourchurch.app.web is the easy choice.
  2. Open it, tick Sign in with Apple, then Configure. Set the Primary App ID to your app, Domains to your-site.heartisan.app and Return URLs to https://your-site.heartisan.app/.
  3. Save, reopen Configure, and use Download to get apple-developer-domain-association.txt. Paste its contents into Settings → Payments & Sign-in → Apple domain verification file.
  4. Ask us to deploy your member website, then click Verify back in Apple's dialog.
  5. Paste the Services ID into Apple Client ID(s), on its own line under the bundle ID.
The trailing slash on the return URL matters. The website tells Apple its own address plus / and Apple compares the two exactly, so https://your-site.heartisan.app without the slash counts as a different address and the sign-in is refused.
Apple requires this one. If your iOS app offers any other social sign-in, Apple's review guidelines require Sign in with Apple as well. Skipping it is a common reason for an app being rejected.
This is not the Apple Shared Secret field on the same page — that one is for in-app purchase receipts. Sign in with Apple needs no secret and no .p8 key anywhere in Heartisan.

Testing

  1. Save your settings.
  2. Open your member website or your app, and sign out.
  3. Try each provider you've configured, on a real device where possible.

Apps that are already installed pick up a newly added client ID within half an hour, with no store release — the exceptions are Google on iPhone and Apple on iPhone, both of which are built into the signed app.

Troubleshooting

  • The button does nothing — the client ID for that platform is missing or doesn't match the one in the app.
  • “Invalid client” error — usually a web client ID used where a mobile one is expected, or vice versa.
  • Works on Android but not iOS — the iOS client ID is missing, or the app hasn't been rebuilt since it was added.
  • Google works on the website but not on Android — the SHA-1 registered is the upload key rather than the app signing key.
  • Microsoft refuses every sign-in — a redirect URI is under the wrong platform; see the warning above.
  • Apple sign-in refused on the website — the domain isn't verified, the return URL has no trailing slash, or the Services ID isn't in the box.
Social sign-in is optional. With none configured, members simply use email and password as normal.