Adhere Web SDK
The Adhere Web SDK enables you to rapidly and securely verify user identities and perform facial liveness checks directly in your web applications. The SDK mounts a drop-in widget over your application, handling document capture, identity verification, and liveness detection — all in one seamless flow.Features
- Drop-in UI Modal — Responsive, animated widget that overlays your app via
SmartComplyFlow.open(). - CDN & npm Support — Install via npm/yarn or load directly from a CDN with zero build steps.
- Dynamic Routing — Automatically adapts document and verification requirements from your dashboard configuration.
- One-Time Use Policy — Each
clientIdis single-use to prevent duplicate verifications. - Nigeria & Global Identity — Supports BVN, NIN, and International Passport verification.
- Hardware Agnostic Liveness — Uses native webcam and MediaRecorder API for cross-platform compatibility.
Installation
Option 1 — CDN (No build step required)
Add the script tag to your HTML:window.SmartComplySDK:
Option 2 — npm / yarn
Quick Start — Drop-in Widget (Recommended)
The easiest way to integrate is the drop-in widget. It handles the complete verification flow automatically.Get your API Key and generate a Client ID from your Adhere Dashboard. Each
clientId is single-use and tied to one verification session.Configuration Parameters
Environment URLs
Framework Examples
React
Vue
Plain HTML (CDN)
Headless API (Advanced)
For full control over the UI, use theSmartComply class directly without the modal.
onComplete Payload
Security Notes
- Single-use Client IDs — Each
clientIdexpires immediately after a completed verification. Generate a fresh one per user session from your backend. - API Key — Never expose your API key in client-side code in production. Use environment variables.
- Session Tokens — Session tokens are automatically managed by the SDK and expire after 30 minutes.

