Hosted or SDK?
One decision, per surface
Hosted sign-in is a wall you author, served on the <name>.billdog.app address issued when you enable auth, or on a verified domain of your own. SDK-driven sign-in is your own UI calling the SDK. Both are first-class; they can coexist in one project, and the right answer differs by platform.
The short answer
| Platform | Recommended | Why |
|---|---|---|
| Web | Either | Hosted gives you an httpOnly refresh cookie and the multi-step flows for free. The SDK gives you full control of the screen |
| iOS, Android | SDK | The refresh token belongs in the Keychain / EncryptedSharedPreferences, and the SDK owns the session the rest of BillDog reads |
| React Native, Expo, Flutter | SDK | Same — the bridges delegate to the native SDKs precisely so that stays true |
| Anywhere with no SDK | Hosted | Open it in a browser and verify the token on your backend |
An Auth Card will not sign anyone in inside a native app
What each gives you
| Hosted | SDK-driven | |
|---|---|---|
| Refresh token | httpOnly cookie, unreadable by JavaScript | Keystore on mobile; yours to hold cross-origin on web |
| Second factor | Built in — including after a social sign-in | Yes: attempt with the mfaToken, or completeSecondFactor on the native SDKs |
| Password reset and change | Reset on the wall; change on the /account portal | Yes — see Passwords |
| Captcha and invite-only sign-up | Handled | Web only — no native SDK can send those tokens |
| Social sign-in | Runs the flow for you — Google, Apple and Facebook, no provider SDK on the page | Facebook, Google on iOS and Apple on Android need nothing from your app — BillDog runs them in a browser. Apple is built in on iOS; Google on Android uses Google Play Services |
| Look and feel | Authored in the builder | Entirely yours |
| Needs | Auth enabled (which issues the address), and a published Auth wall attached to placement billdog_auth_sign_in in a campaign | An SDK on the platform |
Getting to a working hosted page
- Enable auth. Project Settings → Auth. This issues
<name>.billdog.appand<name>-sandbox.billdog.appas verified domains of the project — no DNS to configure. Rename the label there if you like, or add a verified custom domain under Web Checkout. - Publish an Auth wall from one of the four recipes in the template gallery.
- Attach it to the placement
billdog_auth_sign_inin a campaign — it is offered under System placements. The hosted address card on the Auth tab shows whether anything is attached and links to the campaign.
Until step 3 the address answers NOT_CONFIGURED. After it, https://<name>.billdog.app/sign-in serves the wall, /account serves the portal, and ?next= carries a same-origin path to land on afterwards — see Building a sign-in wall for the URL rules.
One case where hosted is the only answer
- Projects with bot protection or invite-only access, on mobile. The native SDKs cannot send a captcha or invitation token, and cannot discover that one is required, so sign-up returns a 400 the app cannot explain. Route sign-up for those projects to the hosted page.
Mixing them
A common shape is SDK sign-in in the apps and a hosted wall on the web. Both produce the same session and the same token, so your backend verifies them identically and neither knows which one the person used. Sessions are per-device regardless: signing in on the web does not sign anyone into the app.
Was this page helpful?
Or rate this page: