Skip to main content
Drop Dojah’s hosted verification flow into any web page with the Connect widget — a single script, no framework required.
This is a widget SDK — it renders Dojah’s UI with your public key. Shared options & response events live in Choosing an SDK.

Install

Add the widget script to your page. Don’t use async/defer — the inline code may run before the library loads.
index.html

Initialize

Create a Connect instance with your credentials and callbacks, then open it on a click:
app.js
type can be custom, verification, identification, or liveness. See Configuration options and Handling the response for the full set.

TypeScript

Connect is attached to window at runtime, so declare it to keep TypeScript happy. Add a types/index.d.ts file and point compilerOptions.typeRoots at that folder:
types/index.d.ts
Then instantiate it from window:
app.ts

Resources