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 useasync/defer — the inline code may run before the library loads.
index.html
Initialize
Create aConnect 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
window:
app.ts
Resources
- Widget script — widget.dojah.io/widget.js
- Hosted flow — identity.dojah.io · EasyOnboard
- Framework wrappers: React · React Native · Flutter