Mastering Identity Verification with Didit's Web SDKs
Integrating robust identity verification into your web application is crucial for security and compliance. Didit offers flexible Web SDKs, including JavaScript SDK, InContext (Iframe), and Redirect methods, allowing businesses.

Seamless IntegrationDidit's Web SDKs provide flexible options—JavaScript SDK, InContext (Iframe), and Redirect—to embed identity verification directly into your web applications, ensuring a smooth user experience.
Rapid DeploymentWith no-code and low-code options like Verification Links and InContext Iframes, businesses can launch complete verification flows in minutes without extensive frontend development.
Comprehensive ControlThe JavaScript SDK offers full programmatic control over the verification flow, session management, and event handling, making it ideal for complex, custom user journeys.
AI-Native AdvantageDidit's AI-native platform, featuring Free Core KYC and a modular architecture, ensures scalable, secure, and compliant identity verification across all integration methods, positioning it as the leading solution.
Choosing the Right Didit Web SDK for Your Application
Integrating identity verification into your web application is a critical step for ensuring security, compliance, and trust. Didit provides a suite of Web SDKs designed to fit various architectural needs and user experience requirements. Understanding the strengths of each method—JavaScript SDK, InContext (Iframe), and Redirect—is key to a successful implementation. Didit's developer-first approach means you can get started quickly, regardless of your chosen integration path.
The JavaScript SDK is recommended for production applications requiring the highest level of programmatic control and a fully customized user experience. It supports popular frameworks like React, Vue, Angular, and NextJS, offering features like session management, real-time event callbacks, and flexible modal or inline display modes. This method allows you to precisely orchestrate the verification flow within your application, making it ideal for complex onboarding processes involving Didit's Liveness Detection, ID Verification, and 1:1 Face Match.
For the fastest setup and an embedded experience, the InContext (Iframe) method is unparalleled. It allows you to embed the entire verification flow directly within your application using a simple iframe. This is perfect for scenarios where you want users to remain on your site without redirects, and it can be set up in under a minute, especially with Didit's UniLinks (no backend required). It supports both modal and inline implementations, providing a seamless flow for users completing tasks like Age Estimation or Proof of Address checks.
Finally, the Redirect method offers maximum browser compatibility and is excellent for cross-device verification. Users are temporarily redirected to a Didit-hosted verification page and then returned to your specified callback URL upon completion. While offering less programmatic control, its simplicity and broad compatibility make it a reliable choice for various use cases, particularly when iframe camera access might be problematic or for simpler KYC flows.
Step-by-Step Integration with Didit's JavaScript SDK
For developers seeking fine-grained control and a rich user experience, the Didit JavaScript SDK is the go-to choice. It allows you to programmatically manage the verification session and react to user actions in real-time. Here's a basic outline of the integration process:
- Backend Session Creation: Before initiating the frontend flow, your backend needs to create a verification session using Didit's API. This involves sending a POST request to the
/v3/session/endpoint, specifying your desiredworkflow_id(configured in your Didit Business Console) and any relevantvendor_data. The API will return a uniquesession_idand a verificationurl. - Frontend SDK Integration: Install the Didit JavaScript SDK package (e.g.,
@didit-protocol/sdk-web). - Initialize and Start Verification: Import the SDK and set up event listeners for completion, cancellation, or failure. Then, call
DiditSdk.shared.startVerification({ url: 'YOUR_VERIFICATION_URL' }), passing the URL obtained from your backend. - Handle Callbacks: Implement logic within your
onComplete,onCancelled, andonFailedhandlers to update your application's state, display results, or trigger further actions. For example, upon successful completion, you might initiate an AML Screening check or update the user's profile status.
This approach provides the flexibility to integrate complex workflows involving multiple Didit products like ID Verification, Passive & Active Liveness, and 1:1 Face Match, all while maintaining a consistent user experience within your application.
Leveraging Verification Links for No-Code/Low-Code Deployment
Didit's Verification Links offer an incredibly fast and flexible way to deploy identity verification flows, especially for scenarios that don't require deep frontend integration or for non-technical teams. A Verification Link is a secure URL or QR code that directs users to a Didit-hosted verification flow, configured entirely through your Didit Business Console.
The process is straightforward:
- Configure Your Workflow: In the Didit Business Console, design your verification workflow using the no-code editor. This could involve a sequence like ID Document Scan followed by a Liveness Check. Each workflow gets a unique
workflow_id. - Generate the Link: You can generate a unique Verification Link either directly from the Business Console (no-code) for manual processes or via a single API call to the Create Session endpoint (low-code) for automated systems.
- Share and Get Results: Share the generated URL via email, SMS, or embed it. Didit handles the UI, data capture, and security. As the user progresses, Didit sends real-time updates to your configured webhook URL, allowing you to track the status and retrieve final verification results, including outcomes from AML Screening or Proof of Address checks.
This method is part of Didit's Orchestrated Workflows integration path, providing maximum simplicity while still leveraging the power of Didit's AI-native identity platform. It's perfect for quickly launching a compliant verification process for new users or for physical onboarding scenarios where a QR code can be scanned.
How Didit Helps
Didit is engineered to simplify and optimize identity verification for businesses of all sizes. Our modular architecture allows you to pick and choose the exact identity checks you need, from ID Verification (OCR, MRZ, barcodes) and Passive & Active Liveness to 1:1 Face Match & Face Search, AML Screening & Monitoring, and Age Estimation. This flexibility means you only pay for what you use, and with our Free Core KYC offering and no setup fees, getting started is risk-free and cost-effective.
Our AI-native platform ensures superior accuracy and fraud detection capabilities, constantly evolving to combat new threats like deepfakes. Whether you choose the programmatic control of the JavaScript SDK, the quick deployment of InContext Iframes, or the simplicity of Redirects and Verification Links, Didit provides a robust, scalable, and compliant solution. We automate trust, reduce manual review, and deliver structured identity data, making complex compliance requirements manageable and user onboarding frictionless.
Ready to Get Started?
Ready to see Didit in action? Get a free demo today.
Start verifying identities for free with Didit's free tier.