Skip to main content

Seamless Biometric Authentication with Didit's Flutter SDK

Integrating robust biometric authentication into Flutter apps is crucial for modern security. Didit's Flutter SDK simplifies this by offering advanced liveness detection and 1:1 face matching, ensuring secure and user-friendly.

Seamless Biometric Authentication with Didit's Flutter SDK

Contents

In this guide

Jump to the part you need.

Effortless IntegrationDidit's Flutter SDK provides a streamlined path for embedding advanced biometric authentication directly into your mobile applications, complete with native iOS and Android support.

Advanced Fraud PreventionLeverage Didit's Passive & Active Liveness detection to accurately verify a user's presence and thwart sophisticated spoofing attempts, securing your platform against deepfakes and presentation attacks.

Precise Identity VerificationUtilize 1:1 Face Match to reliably compare a user's live biometric data against a trusted reference image, confirming identity with high accuracy and configurable thresholds.

Developer-First & Modular DesignDidit empowers developers with clean APIs, comprehensive documentation, and a modular architecture, allowing for flexible integration and customization of identity verification workflows, all backed by Core KYC.

In today's digital landscape, securing user accounts and ensuring legitimate identities is paramount for any application. For Flutter developers, integrating advanced biometric authentication has become a non-negotiable feature, offering both enhanced security and a superior user experience. Biometric authentication, combining liveness detection and facial recognition, provides a frictionless yet robust method to verify users without the need for traditional passwords or document uploads for returning users.

The Power of Biometric Authentication in Flutter Apps

Biometric authentication offers a significant leap forward from traditional verification methods. Instead of relying on something a user knows (passwords) or something they have (tokens), it utilizes something they are—their unique biological characteristics. For Flutter applications, this translates into a more secure and convenient user journey. Users can log in or confirm transactions with just a glance, drastically reducing friction while simultaneously elevating security against unauthorized access.

Didit's Flutter SDK is designed to make this integration seamless. It provides a Dart API that wraps powerful native iOS and Android SDKs, ensuring optimal performance and access to device-specific features like NFC verification for ePassports and eIDs. This means your Flutter app can harness the full potential of biometric security, offering a consistent and reliable experience across platforms.

Understanding Liveness Detection and Face Matching

At the core of robust biometric authentication are two critical components: liveness detection and face matching. These work in tandem to ensure that the person being authenticated is not only who they claim to be but also a real, live individual present at the time of verification.

  • Liveness Detection: This technology verifies that a real person is present and not a static image, video, or 3D mask. Didit offers both Passive & Active Liveness methods. Passive liveness operates discreetly in the background, analyzing subtle cues without explicit user interaction. Active liveness, conversely, might prompt the user for simple actions like turning their head or blinking, providing an additional layer of assurance against sophisticated spoofing attempts. The Biometric Authentication report provides a liveness score, indicating the confidence level of a live presence. Warnings like LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE are crucial indicators that help detect potential fraud.
  • 1:1 Face Match: Once liveness is established, 1:1 Face Match compares the live-captured facial features against a trusted reference image. This reference image could be from a previously verified document (e.g., an ID card verified via Didit's ID Verification) or an enrollment selfie. The system generates a similarity score, determining how closely the two faces match. A high score confirms identity, while a low score (LOW_FACE_MATCH_SIMILARITY) suggests a potential mismatch or fraudulent attempt.

Didit's Biometric Authentication process combines these two verifications. Both liveness detection and face matching must pass for the overall authentication to be approved, providing a comprehensive and highly secure verification flow.

Integrating Biometrics into Your Flutter App with Didit

Integrating biometric authentication with Didit's Flutter SDK is a straightforward process, designed with developers in mind. The first step involves adding the didit_sdk package to your Flutter project and configuring the native dependencies for iOS and Android, as outlined in Didit's comprehensive documentation.

The workflow typically begins on your backend, where you initiate a session with Didit's API, specifying a workflow_id and optional vendor_data. This call returns a session_id and a session_token. The session_token is then securely passed to your Flutter application. Within the Flutter app, you can use this token to launch the Didit SDK's biometric flow. The SDK handles the entire user-facing process, from capturing liveness sessions to performing the 1:1 Face Match.

Upon completion, the SDK returns the results to your Flutter app, which can then be relayed back to your backend for final processing and decision-making. The Biometric Authentication Report provides detailed insights, including liveness status, face match score, and any warnings. This structured response allows you to programmatically manage user authentication outcomes, setting configurable thresholds for review or automatic decline based on your application's security requirements.

Configuring Security Thresholds and Handling Warnings

A key aspect of a robust biometric authentication system is the ability to configure security thresholds and effectively manage potential warnings. Didit's platform allows you to fine-tune these settings to match your specific risk appetite and compliance needs. For instance, you can set:

  • Low Liveness Score Thresholds: Define a review threshold for sessions with scores indicating potential issues, and a decline threshold for scores that unequivocally suggest a non-live presence.
  • Low Face Match Score Thresholds: Similarly, set thresholds for face match similarity, distinguishing between cases that require manual review and those that should be automatically declined.

Didit's Biometric Authentication Warnings provide critical information about potential issues during the verification process. Conditions like FACE_IN_BLOCKLIST (if the face matches a known fraudulent entry), NO_FACE_DETECTED, LIVENESS_FACE_ATTACK, or NO_REFERENCE_IMAGE will always result in an automatic decline, regardless of your application settings. For other warnings, such as LOW_LIVENESS_SCORE or LOW_FACE_MATCH_SIMILARITY, you have the flexibility to configure whether they trigger a review, an automatic decline, or simply serve as informational alerts.

This granular control ensures that your biometric authentication process is both secure and adaptable, allowing you to balance user experience with stringent fraud prevention measures.

How Didit Helps

Didit is the AI-native, developer-first identity platform that simplifies the integration of advanced biometric authentication into any application, including those built with Flutter. Our modular architecture allows you to plug-and-play identity checks like Passive & Active Liveness and 1:1 Face Match, creating custom, orchestrated workflows that fit your exact needs. With Didit, you benefit from:

  • Pay per use: Get started with essential identity verification features without upfront costs.
  • AI-Native Accuracy: Our advanced AI algorithms power accurate liveness detection and face matching, minimizing false positives and negatives.
  • Developer-First Approach: Access an instant sandbox, public documentation, and clean APIs, making integration intuitive and fast.
  • No Setup Fees: Implement robust identity verification without hidden costs, paying only for successful checks.
  • Comprehensive Biometric Suite: Beyond Liveness and Face Match, Didit offers a full suite of biometric capabilities, including Face Search, ensuring you have all the tools to authenticate returning users securely.

By leveraging Didit's Flutter SDK, you can quickly deploy a sophisticated biometric authentication system that enhances security, improves user experience, and protects your platform from evolving fraud threats, all while maintaining a flexible and scalable infrastructure.

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.