Auth Card Reference
A deliberately small surface
The card owns the sign-in state machine, so what an author can reach is brand and feature choice — never wiring. Everything below is the whole configurable surface.
Properties
| Property | Values | Default | Notes |
|---|---|---|---|
| Mode | sign_in · sign_up · passwordless | sign_in | Signing up always sends a code — no session is issued until it is verified |
| Identify people by | email · phone | email | Sets the keyboard, the input type, and which channel codes are sent on |
| Headline | Text | Empty | Supports dynamic values and localisation |
| Button label | Text | Empty | Left empty, the button names the step it is on. Usually better than a fixed label |
| Hide when signed in | Toggle | Off | Off: a signed-in visitor sees "Signed in as …" and, on the web, a Sign out link. On: the card renders nothing |
| Skip this screen when signed in | Toggle | Off | In a multi-screen wall, advances past the card for someone already signed in. Never after Back |
| Signed-in text | Text | Empty | {{user.displayName}} is replaced with the label the app supplied. Empty: "Signed in as …", or "Signed in" with no label |
| In-app notice | Text | Empty | Shown inside a native app, where the app signs people in. Empty: the card renders nothing there |
| Continue with Google | On / off | Off | Configure the provider in Project Settings → OAuth |
| Continue with Apple | On / off | Off | Needs the Services ID and the Team ID, Key ID and .p8 key (Project Settings → OAuth) — Apple signs its client secret with your key. Apple returns by POST to BillDog's bounce, never to the wall |
| Continue with Facebook | On / off | Off | Needs the App ID and App Secret. Runs BillDog's redirect flow — no Facebook SDK on the page |
| Offer a password reset | On / off | On | Sends a reset code, then collects it with the new password |
Colour, typography, radius, border, shadow, padding, margin, position, transform, blur and animation come from the standard property groups, so the card inherits the wall's brand. There is no bespoke theming surface and no input-binding surface.
The five steps
Every transition is driven by a server answer, never by the author. That is the point of putting the machine in the component.
| Step | What the person sees |
|---|---|
identifying | The identifier, plus a password in sign_in / sign_up mode |
awaiting_code | A one-time code was sent and is being entered |
mfa | First factor passed — a password, a code, or a social sign-in the browser just returned from — and the server wants a second. After a social sign-in there is no identifier field; the challenge names the account |
reset_confirm | A reset code was sent; collecting it with the new password |
success | Signed in — the wall advances or navigates |
Every code step has a way back, and both code transitions announce themselves. An earlier version had seven ways into the code step and none out, with the identifier locked read-only — so anyone who tapped "Create account" while already registered waited at a silent box for a code that is deliberately never sent to them.
A mistyped second factor restarts the flow
Where it renders, and where it does not
| Surface | Behaviour |
|---|---|
Hosted page — <name>.billdog.app or your verified domain | Fully live — this is what it is for. A social sign-in that returns owing a second factor lands on the mfa step; one that is refused shows the reason |
| Builder canvas and dashboard previews | Renders and is brandable; does not submit |
Web SDK (@billdog.io/web) with configure({ auth }) | Fully live through the app's own BillDogAuth, which holds the session. A social sign-in returns to the page, and an owed second factor re-opens the wall on the mfa step. Without auth, behaves as in a native app |
| Inside a native app's WebView | Does not sign anyone in — the app's SDK does. Shows the In-app notice (nothing by default), or the signed-in state |
Why it renders in previews but not in a native app
Signed-in state
The app tells the wall two things: whether someone is signed in, and a label to show (usually their email). Never a token and never an id — the customer's identity stays in the SDK. Walls can use {{user.isSignedIn}} and {{user.displayName}} in text and conditions on every surface, native rendering included.
- BillDog Auth: automatic. Label it with
BillDogAuth.setDisplayName(email)(iOS, Android, React Native, Flutter); the web SDK uses the identifier typed into the card. - Another auth provider:
setAuthState({ isSignedIn, displayName })— on the web SDK, React Native and Flutter auth modules, orWallAuthStateRelay.setHostStatenatively. logIn(appUserId)identifies a customer; it does not mark anyone signed in.
Localisation
The headline and the button label are localisable like any other text property, so a wall with translations does not render its copy in French and its sign-in button in English. The builder's localisable set is imported from the renderer's rather than restated, so the two cannot drift.
Errors the card shows
- Blank or malformed fields are named locally, before a request — so an empty box does not cost one of three attempts per ten seconds and come back as a generic server error.
- Credential failures surface as the server's single opaque message. There is nothing more specific to show.
- OAuth failures are surfaced rather than swallowed: an unconfigured provider or a rejected redirect used to leave a clean form and no message. The buttons also have a busy state, so repeated taps do not each start a new flow.
Was this page helpful?
Or rate this page: