Docs / Device identity

Device identity

We do not identify a device from User-Agent alone. Core path is a first-party device_token on your shop domain. FingerprintJS, CHIPS API cookies, and DBSC are optional extras you turn on when you want them — same class of SDK work Sift / Fingerprint / Radar ship, not “extra homework for the storefront.”

Why this lives in the fraud SDK

Remembering “same browser as last login” is an anti-fraud job, not a checkout-UI job. Merchants hang frod.js; FraudLens owns the identity ladder and deep billing rules. Competitors do the same via their browser SDK — you are not being asked to invent your own device graph.

Default is lean. Out of the box you get first-party dt_… + soft fingerprint class + network dossier. Heavier extras (FPJS script, cross-site cookies, DBSC detect) stay off until you set a flag.

How to enable extras

OptionDefaultWhat it does
device_token always on Mints dt_… into localStorage + first-party cookie on your domain. Required for cheap reuse / ATO drift.
clientHints true Reads UA Client Hints (model / platform / arch) into soft fp. Cheap; set false to skip.
fingerprintJs false Loads self-hosted /assets/vendor/fingerprintjs.v5.js → fj:… fallback when token is wiped.
apiCookies false credentials: "include" so collect can set HttpOnly Partitioned frod_dt (CHIPS) on the API host.
dbsc false Feature-detect Device Bound Session Credentials; reports browser.dbsc. No bind protocol yet.
await Frod.collect({
  publishableKey: "fk_pk_…",
  // lean defaults — only flip what you need:
  fingerprintJs: true,  // fj: fallback
  apiCookies: true,     // CHIPS HttpOnly on API host (allow CORS credentials)
  dbsc: true,           // detect only
  // clientHints: false // optional off
});

Same flags work on FX.auto({ hang: "page", form, … }) (recommended hang). If you enable apiCookies, allow your shop origin with credentialed CORS (PUT /v1/account/origins).

Identity ladder

RungKeySourceDeep on change?
1 · remembered tok:… First-party device_token (cookie + localStorage) Yes
2 · fpjs fj:… FingerprintJS OSS visitorId (only if fingerprintJs: true) Yes (fallback)
3 · probable fa:… Soft fp + ASN Yes
4 · class_only fp:… Soft fp alone No — never bills alone

First-party device token

frod.js mints dt_… and dual-writes it to:

  • localStorage frod_dt on the merchant origin
  • first-party cookie frod_dt (JS-readable, SameSite=Lax) on the merchant origin
  • Optional: HttpOnly Partitioned cookie on the API host after collect when apiCookies: true (CHIPS)
Why not User-Agent? UA is frozen / reduced in modern browsers. Client Hints replace it for model/OS — still not a stable person id.

FingerprintJS (open-source) — opt-in

Self-hosted MIT FingerprintJS v5 under /assets/vendor/fingerprintjs.v5.js. Enable with fingerprintJs: true. The visitorId is a fallback when the first-party token is missing (private mode, cleared storage). It is never the only signal used to punish a user.

UA Client Hints

Default on. Collect asks for high-entropy hints (model, platformVersion, architecture, bitness, mobile). Session create may send Accept-CH so Chromium can attach them on the next request. These feed the soft fingerprint class — they describe the phone/OS, they do not replace the token. Pass clientHints: false to skip.

Device Bound Session Credentials (DBSC) — opt-in detect

W3C DBSC is the next step for session security — different from a tracking device id.

  1. At sign-in the site tells the browser to start a DBSC session. The browser creates a non-exportable private key (often backed by TPM / platform secure storage).
  2. Cookies for that session are no longer pure bearer tokens: the browser must periodically prove possession of the key when refreshing session cookies.
  3. If malware steals the cookie jar and copies it to another machine, proofs fail — the stolen session cannot be used off-device the way a normal cookie can.
  4. Clearing site data clears the DBSC session too (by design — it must not become a super-cookie).
Status in FraudLens Pass dbsc: true to feature-detect and report browser.dbsc on collect. Full bind/refresh protocol is not enforced yet — Chrome support is still rolling out. Until then, first-party token (+ optional FPJS) + network dossier remain the production path.

Noise-aware soft fingerprint

Privacy browsers (Brave, Tor) randomize canvas reads — canvas.noisy is set on collect. Instead of hashing the noisy digest, soft_fp collapses to stable GPU, screen, hardware, and locale groups (st_… prefix). Device memory stays consistent; replay flags soften when noise is expected.