Skip to main content
Didit Raises $7.5M to Build the Infrastructure for Identity and Fraud
Didit
Back to blog
Blog · March 6, 2026

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.

By DiditUpdated
biometric-authentication-flutter-sdk.png

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 Free 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:

  • Free Core KYC: 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.

Infrastructure for identity and fraud.

One API for KYC, KYB, Transaction Monitoring, and Wallet Screening. Integrate in 5 minutes.

Ask an AI to summarise this page
Biometric Authentication Integration with Didit Flutter SDK.