## Collect the Tokens

On submit, call `Sentinel.collect()` — it waits for the device layer to settle (at most 5 seconds; `collect({ timeout: ms })` changes that) and returns `{ token, fingerprintEventId, tz }`, already under the API's names. Forward them to your backend. Check that `window.Sentinel` exists first, and never hold the form when the script is missing or blocked. (A plain form post carries the hidden inputs `monocle`, `sentinel_fp` and `sentinel_tz` instead: your server sends them as `token`, `fingerprintEventId` and `tz`.) Client-rendered app (React, Next.js, Vue)? Nothing extra to add: the script keeps one hidden form of its own, so the token is there even for forms your app renders after the page loads.

JavaScript (Frontend)

```
document.getElementById('my-form').addEventListener('submit', async (e) => {
  e.preventDefault();

  // Both layers (network token + device event id) and the time zone.
  // No script (blocked or still loading)? Send the form anyway.
  const evidence = window.Sentinel ? await window.Sentinel.collect() : {};

  // Forward them to your backend with the rest of the form data
  const res = await fetch('/your-backend-endpoint', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      email: e.target.email.value,
      ...evidence  // ← token, fingerprintEventId, tz: the API's own names
    })
  });
});
```
