Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io

    BillDog Auth

    Authentication that already knows what they paid for

    BillDog Auth signs your users in and issues a short-lived session token your own backend verifies offline — no network call on your request path. That token carries their entitlements in the ent claim, so gating a paid feature is a claim check rather than a round-trip to us. It is the same entitlement set the rest of BillDog resolves, which is the point: one identity, one answer about what they own.

    Two nouns, and they are not the same

    These words appear on every page, so they are worth thirty seconds now:

    • A user is who signs in — credentials, sessions, second factors, organization membership. In the token this is the sub claim.
    • A customer is what they own — entitlements, purchases, analytics. In the token this is the cus claim, and it is how you join back to the rest of your BillDog data.

    One user maps to at most one customer. A person who has never signed in can still be a customer — that is an ordinary anonymous purchaser. Signing in is what attaches a credential to that record.

    What you get

    Ways to sign in

    Password, email code, SMS code, Google, Apple, Facebook, passkeys, and enterprise SSO over SAML or OIDC.

    Second factors

    TOTP and backup codes, optionally mandatory for the whole project.

    Organizations

    Teams with roles, invitations and verified domains — and entitlements that members inherit.

    Sessions you can see

    List a person's devices, end one, or end all of them. Rotation with reuse detection is on by default.

    Two ways to run it

    Pick one per surface. They can coexist in the same project.

     Hosted sign-inSDK-driven
    What it isA sign-in wall you author in the Paywall Builder, served on the <name>.billdog.app address issued when you enable auth, or on a verified domain of your ownYour own UI, calling the SDK
    Refresh tokenAn httpOnly cookie JavaScript cannot readReturned to you; storing it is your decision
    You buildNothing — branding is the wall'sEvery screen and every branch
    Available onWeb, and any app that can open a browserWeb, iOS, Android, React Native, Expo, Flutter

    Hosted is the shorter path and the safer default, because the refresh token never reaches your JavaScript and the multi-step flows — second factor, password reset — are already built. Reach for the SDK when the sign-in screen has to be yours.

    Platform support

    PlatformPackageAuth
    Web@billdog.io/authFull, including organizations and second factors
    iOSBillDogFull / BillDogEngSign-in, sessions, organizations, passkeys
    Androidio.billdog:billdog-authSign-in, sessions, organizations, passkeys
    React Native / Expo@billdog.io/react-native, @billdog.io/expoDelegates to the native SDKs
    Flutterbilldog_flutterDelegates to the native SDKs
    Node (server)billdogeng-nodeToken verification only — no credential handling
    Everything else—Not yet. Use hosted sign-in and verify tokens on your backend

    Turning it on

    Auth is off by default. Enable it in Project Settings → Auth, which is also where you set who may sign up, the password policy, session lifetimes and phone sign-in. Every endpoint refuses with 403 ACCESS_DENIED until it is on.

    Every call looks like this
    curl https://api.billdog.io/v1/auth-config \
      -H "X-BillDog-API-Key: bd_public_live_…" \
      -H "Content-Type: application/json" \
      -d '{}'

    Auth endpoints take your public key — the same one you ship in an app. The key's prefix decides the environment, and sandbox and production identities are different people with different signing keys.

    Where to next

    • Quickstart — a working sign-in in about fifteen minutes.
    • Sessions and tokens — what the token is, how long it lives, and where to keep it.
    • Identities — email, phone and username, and the one parameter that silently breaks phone sign-in.

    Was this page helpful?

    Or rate this page:

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.