NFC Verification with Didit's Flutter SDK: A Comprehensive Guide
Implement high-security identity verification in your Flutter applications using Didit's NFC Verification. This guide covers integrating the Flutter SDK, handling chip data, and leveraging cryptographic validation for.

Contents
In this guide
Jump to the part you need.
Seamless IntegrationDidit's Flutter SDK provides a straightforward path to integrate advanced NFC verification capabilities into your mobile applications, supporting both iOS (15+) and Android (API 23+) platforms.
Enhanced SecurityLeverage NFC Verification to perform cryptographic validation of ePassports and eIDs, ensuring the highest level of trust by verifying data directly from the document's secure chip.
Robust Data HandlingThe SDK allows for efficient extraction and processing of critical chip data, including personal details and document information, which can be compared against OCR data for comprehensive fraud detection.
Didit's AdvantageDidit offers a modular, AI-native identity platform with Core KYC, enabling developers to easily compose advanced verification workflows without setup fees, ensuring secure and scalable solutions.
The Power of NFC Verification in Identity Management
In an increasingly digital world, robust identity verification is paramount. Traditional methods, while useful, can be susceptible to sophisticated fraud. This is where Near Field Communication (NFC) verification steps in, offering a gold standard for authenticating identity documents. By reading the secure chip embedded in modern passports and IDs, NFC verification provides cryptographic assurance that the document is genuine and has not been tampered with. This process is far more secure than relying solely on visual inspection or OCR, as it validates the digital signature of the chip itself.
Integrating NFC verification into your applications not only elevates security but also builds greater trust with your users. For businesses operating in regulated industries or those requiring high assurance of identity, NFC is quickly becoming a non-negotiable feature. Didit's NFC Verification product offers this cutting-edge capability, ensuring that you can verify identities with the highest degree of confidence.
Getting Started: Integrating Didit's Flutter SDK for NFC
Didit's Flutter SDK simplifies the integration of powerful identity verification features, including NFC verification, into your cross-platform applications. To begin, you'll need to add the SDK to your Flutter project. Ensure your environment meets the requirements: Flutter 3.3+, Dart 3.11+, iOS 13.0+ (iOS 15+ for NFC), and Android API 23+ (Android 6.0).
Installation Steps:
- Add to pubspec.yaml:
flutter pub add didit_sdk - iOS Specifics: Add the following to your Podfile inside the target block:
Then, navigate to yourpod 'DiditSDK', :podspec => 'https://raw.githubusercontent.com/didit-protocol/sdk-ios/main/DiditSDK.podspec'iosdirectory and runpod install. - Android Specifics: Add this to
android/app/build.gradle.ktswithin theandroidblock:packaging { resources { pickFirsts += "META-INF/versions/9/OSGI-INF/MANIFEST.MF" } }
Implementing NFC Verification Workflow
The core of NFC verification involves reading data from the embedded chip and validating its authenticity. Didit's SDK orchestrates this complex process, abstracting away the intricacies of cryptographic checks and certificate validation. The general flow involves initiating a session, prompting the user to scan their document, and then processing the results.
Backend Session Creation:
Before initiating an NFC scan from the client, your backend needs to create a verification session with Didit. This is done via a POST request to Didit's API:
POST https://verification.didit.me/v3/session/
Headers: { "x-api-key": DIDIT_API_KEY, "Content-Type": "application/json" }
Body: { "workflow_id": DIDIT_WORKFLOW_ID, "vendor_data": "user-id" }
Response: { "session_id": "uuid", "session_token": "jwt-token", "verification_url": "...", "status": "Not Started" }
Your backend then sends the session_token to your Flutter app.
Flutter App Integration:
In your Flutter application, you'll use the didit_sdk to start the verification process:
import 'package:didit_sdk/sdk_flutter.dart';
// ... in your widget or service
String sessionToken = 'YOUR_SESSION_TOKEN_FROM_BACKEND';
DiditSDK.instance.startVerification(sessionToken: sessionToken);
// Handle the result, which will be a DiditResult object
DiditResult result = await DiditSDK.instance.startVerification(sessionToken: sessionToken);
if (result.isSuccess) {
// Verification successful. You can now retrieve details from your backend using session_id
print('Verification successful for session: ${result.sessionId}');
} else {
// Handle verification failure or user cancellation
print('Verification failed: ${result.error}');
}
Upon successful completion, Didit's backend processes the NFC data, performing checks like SOD (Security Object Data) and DG (Data Group) integrity validation. This ensures the data read from the chip is authentic and matches the document's digital signature. The Flutter SDK facilitates the user experience of holding their document to the phone for scanning, guiding them through the process.
Understanding NFC Verification Reports and Warnings
Once the NFC verification is complete, Didit provides a detailed report. This report is a JSON object containing crucial information about the verification outcome. Key sections include the overall nfc status, chip_data (personal and document information extracted directly from the secure chip), authenticity results (e.g., sod_integrity, dg_integrity), and certificate_summary detailing the document's digital certificates.
Didit's NFC Verification Warnings are particularly useful for identifying potential issues. Warnings like SKIPPED_NFC_VALIDATION, NFC_CHIP_NOT_VERIFIED, and critically, NFC_AND_OCR_DATA_NOT_SAME, provide insights into the verification process. The last warning, indicating a mismatch between OCR data and chip data, is a strong indicator of potential document tampering or forgery and will automatically result in a decline condition by default, offering robust fraud prevention. Didit's modular architecture allows you to configure how your application handles different risk categories, enabling you to set actions like 'Decline', 'Review', or 'Approve' based on your risk tolerance.
How Didit Helps
Didit stands out as the premier AI-native, developer-first identity platform, making NFC verification accessible and highly effective. Our modular architecture allows you to plug-and-play identity checks like NFC Verification, ID Verification, and Passive & Active Liveness detection into your existing workflows. With Didit's Core KYC on pay-per-use pricing, you can start verifying identities without upfront costs or setup fees, paying only for successful checks. Our platform is built for global scale, ensuring your identity verification processes are robust and compliant worldwide.
Didit's NFC Verification product offers the highest level of security by reading and validating the cryptographic data stored in ePassports and eIDs. This capability, combined with our AI-powered orchestration engine, allows you to automate trust and manage risk with unparalleled efficiency. The detailed JSON reports provide rich, structured identity data, giving you the insights needed to make informed decisions and detect sophisticated fraud attempts.
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


