Performing 1:1 Face Match with Didit's JS SDK
Learn how to integrate Didit's powerful 1:1 Face Match technology into your applications using the JavaScript SDK. This guide covers the verification process, understanding response data, and configuring settings to combat fraud.

Contents
In this guide
Jump to the part you need.
Seamless IntegrationIntegrate Didit's 1:1 Face Match into your web applications using the intuitive JavaScript SDK, enabling quick and secure biometric verification workflows.
Robust Fraud PreventionLeverage AI-powered facial recognition, combined with passive and active liveness detection, to accurately compare a user's live selfie against their ID document photo, effectively deterring identity fraud.
Configurable WorkflowsCustomize verification thresholds for face match scores, allowing you to define when a session requires review or automatic decline, tailoring the process to your specific risk appetite.
Didit's AdvantageDidit provides an AI-native, modular identity platform with Core KYC, no setup fees, and clean APIs, making advanced biometric verification accessible and scalable for businesses of all sizes.
In today's digital landscape, verifying a user's identity is paramount for security, compliance, and building trust. One of the most effective methods is 1:1 Face Match, which compares a user's live biometric data (usually a selfie) against a trusted source, such as their identity document photo. Didit offers a cutting-edge, AI-native solution for this, and integrating it into your web applications is streamlined with the Didit JavaScript (JS) SDK.
Understanding 1:1 Face Match Verification
Didit's 1:1 Face Match is a critical component of robust identity verification, designed to ensure that the person presenting an identity document is indeed its legitimate owner. This process involves two primary steps:
- Liveness Detection: Before any comparison, Didit employs both Passive & Active Liveness checks. This step is crucial for fraud prevention, as it verifies that a real, live person is present and not a deepfake, photo, or video spoof attempting to bypass the system.
- Facial Comparison: Once liveness is confirmed, the system extracts the portrait from the user's ID document (using Didit's ID Verification capabilities like OCR, MRZ, and barcode scanning) and compares it against the live selfie. This comparison generates a similarity score, indicating the likelihood that the two faces belong to the same individual.
The result is a comprehensive report that includes the face match score, status (Approved, Rejected, In Review), and any relevant warnings. This ensures a high level of assurance that the person engaging with your service is who they claim to be.
Integrating Face Match with the Didit JS SDK
Integrating Didit's 1:1 Face Match into your web application is straightforward thanks to the developer-first approach and clean APIs offered by the Didit JS SDK. The SDK simplifies the process of capturing user biometrics, sending them to Didit's backend, and receiving verification results.
The core process typically involves:
- Initializing the SDK: Set up the Didit SDK in your application, providing necessary API keys and configuration.
- Capturing Biometrics: The SDK provides components or functions to guide users through the liveness detection and selfie capture process. This can include active challenges (e.g., head turns) or passive analysis, depending on your configured liveness method.
- Submitting for Verification: The captured data is securely transmitted to Didit's platform.
- Receiving Results: Your application receives a detailed response, including the
face_matchobject, which contains the verification status, similarity score, and any warnings.
Didit's modular architecture means you can integrate Face Match as a standalone component or as part of a broader orchestrated workflow that includes ID Verification, AML Screening, and other checks.
Understanding Face Match Report and Warnings
The face_match object within the API response provides crucial details for decision-making. Key fields include:
status: Indicates 'Approved', 'Rejected', 'In Review', or 'Not Finished'.score: A numerical value (0-100) representing the similarity between the two faces.source_imageandtarget_image: Temporary URLs to the images used for comparison, expiring after 60 minutes for enhanced security.warnings: An array of objects detailing any issues encountered during the process.
Warnings are particularly important for understanding potential risks. For example, a LOW_FACE_MATCH_SIMILARITY warning indicates that the facial features do not closely match, suggesting a possible identity mismatch. Another critical warning is NO_REFERENCE_IMAGE, which means a comparison image was missing, preventing the face match from completing.
Didit allows you to configure thresholds for these warnings. You can set a 'Review threshold' where sessions with scores below this mark are flagged for manual review, and a 'Decline threshold' for automatic rejection. This level of control empowers businesses to balance user experience with their specific risk tolerance.
Security and Best Practices
When working with biometric data, security is paramount. Didit adheres to stringent security protocols, ensuring that temporary URLs for images expire quickly. As a best practice, your application should only store the verification status and similarity score, minimizing the retention of sensitive biometric data on your servers. This approach aligns with privacy regulations and reduces your data footprint.
By leveraging Didit's secure infrastructure and following recommended practices, you can deploy a highly secure and compliant identity verification system.
How Didit Helps
Didit is the AI-native, developer-first identity platform that makes advanced face matching accessible and robust. Our 1:1 Face Match and Passive & Active Liveness products are powered by cutting-edge AI and computer vision, ensuring fast, accurate, and secure identity verification. Didit's modular architecture allows you to easily plug-and-play our identity checks, including ID Verification and Face Match & Face Search, into your existing workflows via clean APIs or our no-code Business Console.
We stand out by offering Core KYC with pay-per-use pricing, meaning you can start verifying identities without upfront costs. There are no setup fees, and our pay-per-successful-check model ensures you only pay for what you use. Didit's comprehensive Biometric Authentication combines liveness detection and face matching into a single, seamless flow, providing a complete picture of the user's authentication attempt and significantly combating fraud. With Didit, you gain an open, modular, and globally designed identity solution that automates trust and scales with your business needs.
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.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alejandro Rosas
Co-founder and CTO

Questions
Blog questions
Who writes the Didit blog?
Which topics does the blog cover?
Is the blog available in my language?
Where do I find product updates?
Are these posts legal advice?
How do I find posts on one topic?
Are posts dated?
Do posts link to the docs?
Is the blog the same as the docs?
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.
Your obligations · 3 regions
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.
- 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.
Didit Academy


