Session Integrity

The face match, liveness and document checks all run on the end user's own device, and that device reports the result back to us. This page explains how we make it hard to copy a verification link, replay an old session, or change a result after the fact — and where the limits are.

The Problem

Running the checks in the browser is what keeps photos and face data off our servers. The trade-off is that the browser is the one telling us what happened. Two things can go wrong:

  • A copied session. The verification link is the only thing needed to open a session. If it is forwarded or opened on a second device, two browsers could end up working on the same verification.
  • An altered result. A result that is changed, replayed from an earlier session, or built by a script rather than by going through the flow, between the moment it is produced and the moment it reaches us.

Session integrity addresses both, in addition to the one-time session ticket, the minimum-time check and the Cloudflare browser check that already protect every submission.

How It Works

1
The session is claimed When the person taps I Agree, their device claims the session and receives a secret key that only it holds. We store only a one-way hash of that key. A second device can't claim the session while the first is active. If the first device goes quiet for a few minutes, or the page is closed, another device can take over.
2
Each step is logged on our servers As the person moves through the flow, the browser reports each step (consent, front of the license captured, selfie completed, and so on). Our server stamps each entry with its own clock and links it to the entry before it with a keyed signature (an HMAC) that only the server can produce. Every entry therefore depends on the whole history before it, and removing or editing an entry breaks the chain.
3
The result is sealed Once the browser has assembled the result, it records a fingerprint of it as the last entry in the chain. The fingerprint covers the check results, the face-match and liveness details, and the encrypted personal data (as the locked box it is, not its contents).
4
The submission is compared with the log When the result arrives, our server checks that it came from the device that holds the claim, that the chain is intact and complete, that the steps happened in order, and that the result in front of it produces the same fingerprint that was sealed during the session.

What It Catches

  • A copied link used from another device while the real session is active.
  • A result that was changed after it was produced — a different match score, a flipped check, swapped encrypted data.
  • A result replayed from another session, or submitted without having gone through the steps.
  • Steps that happened implausibly fast on our clock, or out of order.
  • Edits to the stored log itself, because the signature key never leaves the server.

What It Doesn't Do

i
It does not prove the checks ran. The face comparison happens on the end user's device. Someone who builds a modified browser from scratch can write a self-consistent history from the first step, and session integrity cannot tell that apart from a real one. What it does is make the result commit to a single, ordered, server-timestamped history, so it can't be quietly altered afterwards, copied between devices, or reused. It is one layer alongside the browser check, liveness detection and the on-chain integrity anchor, not a replacement for them.

Current Status

Session integrity is running in monitoring mode. Every session is claimed, logged and compared as described above, and the outcome is recorded privately on our side, but a mismatch does not yet cause a submission to be rejected. We're using this period to confirm that real sessions — including flaky mobile connections, refreshed pages and people switching devices — pass cleanly before we turn on enforcement. You don't need to do anything, and verifications complete exactly as before.

Once enforcement is on, a submission that fails the comparison is rejected and the verification is not completed.

What Is Stored

The session log contains no personal data: step names, timestamps, counters, signatures, and fingerprints of values that are already visible to our servers (such as the check results). The personal fields on the result are end-to-end encrypted before they leave the device, and only their locked form is ever fingerprinted. The claim key is stored only as a one-way hash. The records are tied to the verification and are kept for as long as it is.

What the End User Sees

Nothing, in the normal case. If a link is open on two devices and both try to start, the second sees the same “in progress on another device” screen it always has. Reloading the page keeps the same session. Closing the page hands the session back immediately, so the link can be reopened on this or another device.

Want to see exactly where this happens in the flow?

Step-by-Step Flow →