Social sign-in (Google, Microsoft, Apple)
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.
Configure these on Settings → Payments & Sign-in, under Social sign-in.
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 appyour 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.
heartisan.app one everywhere below — or register both, which is what we'd suggest
while you're moving over.
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.
- Go to the Google Cloud Console and select or create your project. A Firebase project counts — it is a Cloud project.
- 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.
- Open APIs & Services → Credentials → Create credentials → OAuth client ID → Web application.
- 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. - 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:
| App | Create | Google asks for | What 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. |
Microsoft
- Go to the Microsoft Entra admin centre and register a new application.
- Open Manage → Authentication and add a platform → Single-page application, with the redirect URI
https://your-site.heartisan.app/signin-microsoft.html. - Add a platform → Mobile and desktop applications, and under Custom redirect URIs type
hbapp://auth. That one address covers Android, iPhone, iPad and Windows. - Copy the Application (client) ID into the Microsoft Client ID box in the portal, and save.
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
- 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. - Ask us for a new iOS build — the permission is baked into the signed app.
For the member website
- 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.webis the easy choice. - Open it, tick Sign in with Apple, then Configure. Set the Primary App ID to your app, Domains to
your-site.heartisan.appand Return URLs tohttps://your-site.heartisan.app/. - 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. - Ask us to deploy your member website, then click Verify back in Apple's dialog.
- Paste the Services ID into Apple Client ID(s), on its own line under the bundle ID.
/ 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.
.p8 key anywhere
in Heartisan.
Testing
- Save your settings.
- Open your member websiteyour member website or your app, and sign out.
- 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.