Skip to main content

Iframe Overview

The Heuristik Iframe embeds a fully hosted biometric identification UI into your application. It runs on iframe.heuristik.com and communicates results back to your page via postMessage.

How it works

Key characteristics

  • Hosted UI — runs entirely on iframe.heuristik.com, no frontend code to build or maintain
  • Hardware required — needs a fingerprint scanner connected via USB and the local driver running (both provided by Heuristik)
  • Staff authentication — clinic staff log in inside the iframe before scanning
  • Results via postMessage — the iframe sends { HHID: string, isNew: boolean } to the parent window
  • Token-based access — a tokenIframe provided by Heuristik authorizes the integration
  • Third-party cookies required — the iframe needs cross-origin cookies for session management

When to use the Iframe

IframeJavaScript SDK
Integration effortMinimal — embed an <iframe> tagMedium — install package, write code
UI customizationNone — hosted UI as-isFull control over UI
Hardware dependencyFingerprint scanner + local driverFingerprint scanner + local driver
AuthenticationStaff logs in inside the iframeYour app handles auth via SDK
Result deliverypostMessage to parent windowCallback functions in your code
Best forQuick integration with no frontend changesCustom workflows and UI
When to choose the Iframe

Use the Iframe when you want the fastest integration path and don't need UI customization. If you need control over the identification flow or UI, use the JavaScript SDK instead.

Prerequisites

Before integrating the Iframe, ensure you meet all requirements. In summary:

  1. Fingerprint scanner and local driver (both provided by Heuristik)
  2. Iframe token (provided by Heuristik)
  3. Third-party cookies enabled for iframe.heuristik.com