Embedding a re-check
Most workflows run as a redirect: you send the person to the hosted page and they come back to your return_url. A workflow made only of gestures and a face match can also run embedded, inside an iframe on your own page. Introcall uses this for quick re-checks during an interview.
The light check and the photo ID need the full screen, so a workflow with a light or id_portrait step cannot be embedded.
The workflow
Section titled “The workflow”"ui": { "delivery": ["embedded", "redirect"], "allowed_origins": ["https://app.example.com"]}allowed_origins (up to five) lists the pages that may frame the check. The hosted page refuses to be framed anywhere else (CSP frame-ancestors). See introcall-recheck for a full example, which matches against the face kept by an earlier session with reference_sessions.
Your page
Section titled “Your page”<div id="recheck"></div><script src="https://verify.rightful.id/sdk/embed.js"></script><script> const check = Rightful.mount(document.getElementById('recheck'), sessionUrl, { onEvent(e) { if (e.type === 'finished') { check.destroy(); // Ask your server for the result. It reads GET /v1/sessions/{id}. } }, });</script>sessionUrl is the url your server got from POST /v1/sessions. embed.js creates the iframe with allow="camera".
Events
Section titled “Events”| Event | Fields |
|---|---|
ready |
none |
state |
status, can_retry, finished |
finished |
status |
Events are user-interface hints only. The person’s browser can fake them, so the result always comes from your server’s GET /v1/sessions/{id}.
Consent
Section titled “Consent”An embedded re-check usually uses consent.mode: "app_attested": your app has already collected consent (for example when the interview started), and sends that record as consent: {reference, at} when it creates the session.