Skip to main content

The Ultimate Guide to Identity Verification with Didit JS SDK

Discover how Didit's JS SDK simplifies identity verification, offering robust, customizable, and secure solutions. This guide details its features, integration benefits, and how it empowers businesses to achieve seamless KYC.

The Ultimate Guide to Identity Verification with Didit JS SDK

Contents

In this guide

Jump to the part you need.

Streamlined IntegrationThe Didit JS SDK allows developers to embed comprehensive identity verification flows directly into their web applications with minimal code, reducing development time and complexity.

Enhanced User ExperienceBy hosting the verification UI, the SDK ensures a smooth, consistent, and intuitive user journey, leading to higher completion rates and reduced friction.

Robust Security & ComplianceThe SDK leverages Didit's secure backend for ID Verification, Liveness Detection, and AML Screening, ensuring data privacy and adherence to global regulatory standards.

Modular & AI-Native FlexibilityDidit's platform provides a modular architecture and AI-native capabilities, allowing businesses to customize verification workflows and adapt to evolving fraud threats and compliance needs effortlessly.

Introduction to Didit JS SDK for Identity Verification

In today's digital-first world, secure and seamless identity verification is paramount for businesses across all sectors. From financial services and online marketplaces to gaming platforms and healthcare providers, ensuring that your users are who they claim to be is critical for fraud prevention, regulatory compliance, and building trust. However, integrating robust identity verification can often be complex, time-consuming, and resource-intensive, requiring significant development effort.

This is where the Didit JS SDK comes in. Designed with developers in mind, the Didit JS SDK provides a powerful, flexible, and easy-to-integrate solution for embedding comprehensive identity verification flows directly into your web applications. By abstracting away the complexities of backend integrations and UI development, the SDK allows you to launch secure and compliant verification processes in minutes, not months.

Didit, as an AI-native, developer-first identity platform, is committed to providing the open, modular identity layer of the internet. Our JS SDK is a prime example of this commitment, offering a clean API and a no-code Business Console that make identity verification accessible and efficient for businesses of all sizes.

Key Features and Benefits of the Didit JS SDK

The Didit JS SDK is engineered to provide a superior experience for both developers and end-users. Here’s a closer look at its standout features:

  • Effortless Integration: With just a few lines of JavaScript, you can embed a complete, hosted verification flow into your website. The SDK handles the entire user interface, data capture, and secure transmission to Didit's powerful backend. This means less frontend development work for your team.

  • Customizable Workflows: Leverage Didit's no-code Business Console to design bespoke verification workflows tailored to your specific needs. Whether you require ID Verification (OCR, MRZ, barcodes), Passive & Active Liveness for deepfake prevention, AML Screening & Monitoring for compliance, or Age Estimation for age-gated content, the SDK seamlessly executes these steps.

  • Optimized User Experience: The SDK ensures a responsive and intuitive user interface across devices, guiding users through each step of the verification process. This leads to higher completion rates and a positive first impression, crucial for user onboarding and retention.

  • Robust Security & Compliance: All data collected via the SDK is encrypted and securely transmitted to Didit's servers, ensuring compliance with global data protection regulations. Didit's backend processes include advanced fraud detection mechanisms, such as Liveness Detection and 1:1 Face Match, to prevent spoofing and identity theft.

  • Real-time Results & Webhooks: As users complete the verification steps, Didit processes the data and sends real-time updates to your configured webhook URL. This allows your application to react instantly to verification outcomes, automating user onboarding or flagging cases for manual review.

Integrating the Didit JS SDK: A Step-by-Step Guide

Integrating the Didit JS SDK into your web application is straightforward. Here’s a high-level overview of the process:

  1. Configure Your Workflow in the Didit Business Console: Before you write any code, define your desired verification steps. This might include ID Verification (document upload, OCR), Liveness Detection (selfie video), and AML Screening. Save this workflow to get your unique workflow_id.

  2. Generate a Verification Session: From your backend, make a call to the Didit API to create a new verification session for your user. This API call will return a unique session_id and a URL that the JS SDK will use to load the verification flow. You can include vendor_data (like a user ID) to link the session back to your internal records.

  3. Embed the SDK in Your Frontend: Include the Didit JS SDK script in your HTML page. Then, initialize the SDK with the session_id obtained from your backend. The SDK will then render the verification UI within a designated element on your page or as a modal.

  4. Handle Callbacks and Webhooks: Configure your application to listen for events from the SDK (e.g., verification complete, error). More importantly, set up a webhook endpoint on your server to receive real-time results and status updates from Didit's backend. This ensures your system is always synchronized with the verification status.

The beauty of this approach is that the sensitive data handling and complex UI logic are managed entirely by Didit, significantly reducing your development burden and security responsibilities.

Didit offers several integration options, each suited for different use cases:

  • Verification Links: These are secure, unique URLs generated via the Didit console or API that direct users to a Didit-hosted verification flow. They are ideal for situations where you need to send a one-off verification request via email or SMS, or for low-code automation. The JS SDK can be seen as an evolution, embedding this hosted flow directly into your app.

  • Unilinks: These are reusable, no-code links per workflow that start a hosted Didit verification flow. They are perfect for MVPs, manual processes, or in-person KYC scenarios where you need maximum speed to market without any backend integration. The results are typically reviewed manually in the Business Console.

  • Didit JS SDK: The JS SDK provides the best of both worlds for web applications. It leverages the power of Didit's hosted verification flows (like Verification Links) but allows for a more integrated and seamless experience within your existing application, offering greater control over the user journey and better branding opportunities.

While Unilinks and Verification Links are excellent for quick deployments and specific operational needs, the JS SDK offers a more embedded and customizable solution for applications requiring a deeply integrated user experience and automated, high-volume processing.

How Didit Helps

Didit's mission is to be the AI-native, developer-first identity platform that provides the open, modular identity layer of the internet. Our JS SDK is a critical component of this vision, enabling businesses to:

  • Achieve Compliance Effortlessly: With AML Screening & Monitoring and robust ID Verification, Didit ensures you meet regulatory requirements without the overhead.

  • Prevent Fraud Intelligently: Our AI-native platform incorporates advanced Passive & Active Liveness Detection and 1:1 Face Match to combat deepfakes and identity spoofing, protecting your business and your users.

  • Scale Globally with Ease: Didit's modular architecture means you can add or remove verification steps as your needs evolve, supporting global expansion with country-specific database validations and diverse document types.

  • Reduce Costs with Core KYC: Didit stands out by offering Core KYC with pay-per-use pricing, allowing businesses to get started with essential identity verification without upfront costs. Our pay-per-successful-check model and no setup fees make advanced identity solutions accessible to everyone.

  • Accelerate Time-to-Market: The JS SDK, combined with our intuitive Business Console and clean APIs, drastically reduces the time and resources needed to implement robust identity verification, allowing you to focus on your core product.

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.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.