Choose your integration method: From quick no-code iframes to full programmatic control with our JavaScript SDK.
Integration Methods
| Method | Status | Setup Time | Best For |
|---|---|---|---|
| JavaScript SDK | ✅ Available | 3 minutes | Full control, React/Vue/Angular/NextJS/Nuxt/Svelte |
| InContext (Iframe) | ✅ Available | < 1 minute | Quick setup, embedded experience |
| Redirect | ✅ Available | 5 minutes | Cross-device flows |
Recommendation: For production apps, we recommend the JavaScript SDK (when available) or InContext iframe for the best user experience. Use Redirect for simpler integrations or when cross-device verification is needed.
JavaScript SDK
The Didit JavaScript SDK will provide a programmatic way to integrate verification with full control over the user experience. Key Features:- Session management and event callbacks
- React, Vue, Angular, NextJS, Nuxt, Svelte and vanilla JS support
- Full TypeScript support
- Modal & inline modes
InContext (Iframe)
Embed the verification flow directly within your application using an iframe. Seamless experience without redirecting users away from your site. Key Features:- UniLink (no backend required) - setup in < 1 minute
- API Session (with backend) - full customization
- Modal and inline implementations
- React component examples
Redirect
Redirect users to the Didit-hosted verification page. After completion, users return to your callback URL. Key Features:- Maximum browser compatibility
- Cross-device verification support
- Simple integration
- Works when iframe camera access is problematic
Comparison
| Feature | JavaScript SDK | InContext (Iframe) | Redirect |
|---|---|---|---|
| Setup Time | 3 min | < 1 min | 5 min |
| Backend Required | Optional | Optional | Yes |
| Stays on Your Domain | ✅ Yes | ✅ Yes | ❌ No |
| Cross-Device Support | ✅ Yes | ✅ Yes | ✅ Yes |
| Full Programmatic Control | ✅ Yes | ⚠️ Limited | ❌ No |
| Event Callbacks | ✅ Real-time | ⚠️ postMessage | ❌ Callback only |
| White-label | ✅ Yes | ✅ Yes | ✅ Yes |
| Browser Compatibility | All | All | All |