JavaScript Integration
Integrate Owl Eyes verification into any JavaScript application using the core web SDK.
Basic Setup
app.jstypescript
Loading...
Start Verification
The simplest way to start a verification is to call startVerification:
start-verification.jstypescript
Loading...
HTML Container
You need a container element where the SDK will render the verification UI:
index.htmlhtml
Loading...
Modal Mode
Instead of embedding in a container, you can open verification in a modal overlay:
modal-example.jstypescript
Loading...
Pre-created Sessions
If you create verification sessions on your backend (recommended for production), pass the session token to the SDK:
session-token.jstypescript
Loading...
Recommended
Using pre-created sessions is recommended for production. It allows you to attach metadata and reference IDs securely on your backend.Complete Example
complete-example.htmlhtml
Loading...