Skip to main content

React Native ID Verification: SDK Integration Guide 2026

Install @didit-protocol/sdk-react-native 4.15.4 with npm or Yarn, create the session on your backend, and open the native flow with the session token. A full KYC check costs $0.33; the SDK and sandbox are free.

React Native ID Verification: SDK Integration Guide 2026

Contents

In this guide

Jump to the part you need.

If your app runs on React Native 0.76 or newer with the New Architecture, install @didit-protocol/sdk-react-native 4.15.4, create the session on your backend, and open the native flow with the session token. A full KYC check costs $0.33, and the SDK, the workflow orchestrator and the sandbox are free. The caveat: the SDK never holds your API key, so you need one backend endpoint before the first verification runs.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

To have a coding agent write the wiring, see Didit MCP setup.

Didit React Native SDK and pricing at a glance, checked November 26, 2026
ItemDetail
Package@didit-protocol/sdk-react-native. Install with npm or Yarn.
Latest versionVersion 4.15.4 pins the iOS and Android SDKs to 4.15.4 and adds no new JavaScript API
Minimum React Native0.76+ with the New Architecture
Minimum OSiOS 13.0+ and Android API 24+. NFC requires iOS 15.0+ or a compatible Android device with NFC.
NFC passport and eID readingSupported on chip-enabled documents, billed as a $0.15 add-on per check
Full KYC check$0.33: ID document $0.15, passive liveness $0.10, face match 1:1 $0.05, device and IP $0.03
Free plan$10 of credit a month for the first organization created with an eligible work email for a company domain. Unused credit expires each month and phone verification codes are excluded.
SandboxFree and unlimited on every plan
SDK, workflow orchestrator, MCP serverFree, included with every account

What you end up with: native SDK or hosted flow

The result is a native verification screen opened from your React Native code, not a browser view. Use the webhook or decision endpoint to determine the onboarding outcome. Follow the React Native SDK guide for the mobile call signature and result handling.

Use the native SDK or open the hosted flow in a browser. A coding agent can help set up either option.

Native SDK

Add @didit-protocol/sdk-react-native to the app, pass the session token your backend returns, and the SDK opens the native iOS and Android screens with camera, NFC reading and liveness handled for you. The SDK supports iOS 13.0+ and Android API 24+. NFC requires iOS 15.0+ or a compatible Android device with NFC. We recommend the native SDK for React Native apps that need native capture or NFC, and the React Native SDK guide carries the exact commands.

Hosted flow

For a hosted integration, create a session and open the returned url in a browser. We recommend the native SDK for React Native. An integration without NFC access can report INTEGRATION_WITHOUT_NFC_ACCESS.

Coding-agent setup

We provide a hosted MCP server at https://mcp.didit.me/mcp with OAuth sign-in and a copyable integration prompt, free on every account. Give the prompt to your coding agent for the documented setup, including workflow creation through POST /v3/workflows/. The integration prompt is the same recipe in one copyable block.

Prerequisites

What you need before the first React Native verification
RequirementDetail
PlanFree works for building. The $10 of monthly credit goes to the first organization created with an eligible work email for a company domain. Used only for full KYC at $0.33 a check, the full $10 covers 30 checks at list price and leaves $0.10. Credit expires each month and excludes phone verification codes. Growth is $99 a month with $115 of credit and 4% off each price, Scale is $299 a month with $350 of credit and 10% off.
ClientReact Native 0.76+ with the New Architecture, iOS 13.0+, Android API 24+. NFC requires iOS 15.0+ or a compatible Android device with NFC.
API keyOne key on your server only. The decision endpoint needs a key holding read:sessions
Optional hosted callbackA custom scheme such as myapp://kyc/return is always accepted. HTTP and HTTPS callbacks must match an allowed origin when the application has configured allowed domains, or session creation returns 400
Biometric consentIn Auto consent mode, set user_state to the person's state of residence. For residents of Illinois, Texas or Colorado, Didit prompts for explicit biometric consent before the first face capture unless the request includes consent already collected in biometric_consent. An unrecognized user_state value returns HTTP 400. The native prompt requires SDK 4.10.0 or later. React Native SDK 4.15.4 meets that requirement. See the biometric consent docs.

Step by step: from a new organization to a native verification

  1. Create the organization. Go to business.didit.me, sign up with SSO or email and password, and create your Organization. Everything else, workflows, API keys and review, lives there.
  2. Build the workflow. In the sidebar click Workflows, then New workflow. Choose what you verify (Verifying users), then how to start: Describe it, Start from a template, or Start empty. The KYC template is the standard user onboarding path.
  3. Get the API key onto your server. If you signed up in the Console, copy your sandbox API key and keep it on your server. If you are signing up programmatically, use these two calls instead: POST https://apx.didit.me/auth/v2/programmatic/register/, then POST https://apx.didit.me/auth/v2/programmatic/verify-email/ with the 6-character code. Save response.sandbox_application.api_key as your sandbox key and response.application.api_key as the live key. Neither goes in the app bundle.

    For API-based workflow creation, follow the Quick Start example for POST /v3/workflows/. That example includes AML screening, billed separately at $0.20 per completed check. Save the returned workflow.id for session creation.

  4. Create the session in your backend.
    curl -X POST https://verification.didit.me/v3/session/ \
      -H "x-api-key: $DIDIT_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"workflow_id":"WORKFLOW_ID","vendor_data":"user-42","callback":"myapp://kyc/return"}'
    

    The response carries session_id, url and session_token. Send only session_token to the device. Setting vendor_data binds the session to your user id and feeds duplicate detection.

  5. Install the SDK and open the flow. Add @didit-protocol/sdk-react-native with npm or Yarn. The package exposes startVerification and startVerificationWithWorkflow, and the React Native SDK guide gives the exact call signature and result fields for each. Version 4.15.3 fixed both calls on Android: if the app goes to the background, the call now waits until the app is back in the foreground before opening the screen, and always settles.
  6. Register the webhook. POST https://verification.didit.me/v3/webhook/destinations/ with label, url, subscribed_events and webhook_version set to v3. Save the returned secret_shared_key. Verify X-Signature-V2 (HMAC-SHA256 over canonical JSON), check that X-Timestamp is within 300 seconds, compare in constant time, de-duplicate on event_id, and acknowledge valid deliveries within five seconds.
  7. Read the decision when you need it.
    curl https://verification.didit.me/v3/session/SESSION_ID/decision/ \
      -H "x-api-key: $DIDIT_API_KEY"
    

    Branch on session_kind first, then read the feature arrays. Results use plural arrays when present, and fields for checks that did not run can be null or absent.

The document capture screen the SDK opens inside the React Native app
The document step the SDK opens natively: camera framing, capture and OCR, with no WebView in the path.

Field and event mapping

What the webhook and the decision each give you
What you seeWhere it comes fromWhat to do
statuswebhook envelope where webhook_type is status.updatedRead status. The event embeds decision for Approved, Declined, In Review and Abandoned. Use the decision endpoint when you need to retrieve the decision separately.
vendor_data, event_id, session_idwebhook envelopeMap to your user, de-duplicate, store for support
session_kinddecision responseBranch on this before reading anything else: user or business
id_verifications[], liveness_checks[], face_matches[], nfc_verifications[], aml_screenings[]decision objectResults use plural arrays when present. Fields for checks that did not run can be null or absent.
nfc_skip_reasondecision, top levelExplains why NFC did not run, for example USER_SKIPPED or DEVICE_WITHOUT_NFC
biometric_retention.deletes_atdecision objectThe date live biometric data for that session is deleted
The liveness and face capture screen inside the app
Passive liveness runs during the selfie step, then face match compares it with the portrait on the document.

What each status means for onboarding

KYC status and the action it calls for
StatusWhat it meansWhat to do
Not StartedSession created, the link has not been openedSend a reminder if too much time passes
In ProgressThe person is in the flowNo action, leave onboarding pending
ApprovedThe session was approved automatically or by a reviewerContinue onboarding according to your policy.
In ReviewWarnings need a humanKeep onboarding pending and refer the session for review
DeclinedThe session was declined automatically or by a reviewerNotify the person, or request a resubmission if the issue is fixable
ResubmittedYou asked the person to redo specific stepsKeep onboarding pending until it settles again
ExpiredThe link timed out before it was openedCreate a new session
AbandonedThe person started but did not finish in timeCreate a new session or nudge the person
Kyc ExpiredA previously approved document passed its expiry dateRe-verify before keeping access

Test with sandbox data

The sandbox is free and unlimited on every plan, and it does not touch real people or real billing. A sandbox key produces sessions with environment set to sandbox in every webhook.

  1. Fetch the scenario list from GET /v1/sandbox/scenarios/ and pick a documented scenario.
  2. Pass sandbox_scenario when you create the session, or arm it afterwards with POST /v3/session/{session_id}/sandbox/arm/ while the session is still Not Started.
  3. Complete the flow and check that the session webhook has environment set to sandbox and carries the expected status.

For an approval scenario, expect Approved and a status.updated event containing decision. Repeat with a documented decline or review scenario and check that your app handles the corresponding status.

A live session creation request that contains sandbox_scenario returns HTTP 400.

A session in the Didit Business Console showing the parsed ID document
The Business Console shows the parsed document data returned in the session decision.

Error cases and fixes

What breaks, why, and the fix
SymptomCauseFix
401Invalid, revoked or expired API keyIssue a new key and redeploy the server
403 with "You do not have permission to perform this action."Missing x-api-key header or insufficient key privilegesCheck that your server sends x-api-key. For the decision endpoint, confirm the key has read:sessions.
400 on workflow_idInvalid or deleted workflowCopy the id from the workflows list again
400 on callbackThe HTTP or HTTPS URL is not on the allowed domains configured for the applicationAdd the origin, or use a custom scheme such as myapp://
400 on session_expiration_timeOutside 3600 to 2419200 seconds, or not a whole numberSend a whole number inside the range
404 with "Not found."Session does not exist or belongs to another applicationCheck the id and the key you used
Webhook retried twice then droppedYour endpoint timed out, or answered a 5xx or a 404 responseVerify the signature and timestamp, de-duplicate by event_id and acknowledge valid deliveries within five seconds. Resend from the destination delivery log if one is still dropped.
biometric_consent.status is pending with reason BIOMETRIC_CONSENT_UNSUPPORTED_SDKNative SDK below 4.10.0, or a version that is not reportedUpgrade to 4.15.4

Disconnect

To stop this app from starting new verifications, disable the onboarding action that asks your backend to create a session.

What it costs on both ends

The SDK, workflow orchestrator, MCP server and sandbox are free. We bill completed checks from prepaid credit. Some no-match database lookups and retries are also billable, and the pricing docs list them.

A worked example. 10,000 full KYC checks in a month plus 2,000 NFC passport reads, at list price:

  • 10,000 × $0.33 = $3,300.00
  • 2,000 × $0.15 = $300.00
  • Total: $3,600.00

On Growth the unit prices drop 4%: 10,000 × $0.3168 = $3,168.00, plus 2,000 × $0.144 = $288.00, so $3,456.00 of usage. Apply the $115 monthly credit and the $99 monthly fee: $3,456.00 - $115.00 + $99.00 = $3,440.00. On Scale, 10% off: 10,000 × $0.297 = $2,970.00, plus 2,000 × $0.135 = $270.00, so $3,240.00 of usage. Apply the $350 monthly credit and the $299 monthly fee: $3,240.00 - $350.00 + $299.00 = $3,189.00. On the Free plan, $10.00 of monthly credit covers 30 full KYC checks at $0.33 each, leaving $0.10.

How can I demo AI identity verification in React Native?

A workflow can include document capture with OCR, MRZ and barcode reading; a selfie with passive liveness; and a 1:1 face match against the document portrait. For supported chip-enabled documents, add an NFC check and inspect the chip authenticity result or the reported skip reason.

Academy walkthrough of the verification screens a user sees
The Academy lesson walks through the screens a person sees during a verification, step by step.

Why teams pick Didit for this

We run identity and fraud infrastructure for 4,000+ companies, cover 220+ countries and 14,000+ document types, and the verification flow and native SDKs ship in 54 languages. Inference runs at sub-2-second p99. We have a SOC 2 Type 2 report and are certified to ISO/IEC 27001:2022. All of that arrives through one open API, a visual workflow editor and a public price list, with no sales call needed to start.

Sources

Next step: create a free organization at business.didit.me, take the sandbox key and run one session end to end in your React Native build. No sales call is involved, and the sandbox stays free.

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

Frequently asked questions

How do I add identity verification to a React Native app?

Install @didit-protocol/sdk-react-native with npm or Yarn, create a session on your backend with POST /v3/session/, and pass the returned session_token to the SDK. The React Native SDK guide has the exact call signature and result fields. Your server receives the decision by webhook or by fetching GET /v3/session/{session_id}/decision/.

Does the Didit React Native SDK need a WebView?

No. The React Native package wraps the native iOS and Android SDKs for camera capture, liveness and NFC reading. For a hosted integration we still suggest creating a session and opening the returned url in a browser, but we recommend the native SDK for React Native.

How much does one identity check cost in a React Native app?

A full KYC check is $0.33: $0.15 for the ID document, $0.10 for passive liveness, $0.05 for face match and $0.03 for device and IP analysis. NFC chip reading is a separate $0.15 add-on. The SDK itself, the workflow orchestrator and the sandbox are free.

What React Native and OS versions does the SDK support?

React Native 0.76 or newer with the New Architecture, iOS 13.0 or newer and Android API 24 or newer. NFC requires iOS 15.0 or newer on the device, or a compatible Android device with NFC. Version 4.15.4 pins the iOS and Android SDKs to 4.15.4 and adds no new JavaScript API.

Can I keep the API key inside the React Native app?

No. The API key belongs on your server, where it creates the session. Only the session_token, which is scoped to one session, goes to the device. Shipping the key in the bundle would let anyone create sessions on your account.

How do I test the flow without real ID documents?

Use the sandbox. Pick a documented scenario from GET /v1/sandbox/scenarios/, pass sandbox_scenario on session creation or arm it with POST /v3/session/{session_id}/sandbox/arm/, then check what your handler receives. Sandbox testing is free and unlimited, and the field is rejected on live applications.

Which session statuses does my app need to handle?

A KYC session is one of Not Started, In Progress, Approved, Declined, In Review, Resubmitted, Expired, Abandoned or Kyc Expired. KYB sessions add Awaiting User, which does not appear on a React Native KYC flow. The strings are case-sensitive and contain spaces, and Kyc Expired uses a single capital K, so match on the exact string and keep your mapping in one place.

Does the React Native SDK read NFC chips in passports and eIDs?

Yes, for supported chip-enabled documents on iOS 15.0+ or an Android device with NFC. Add an NFC check and inspect the chip authenticity result or the reported skip reason. NFC reading is billed at $0.15 per check on top of the document check, and the decision carries nfc_skip_reason when it does not run, for example DOCUMENT_WITHOUT_CHIP or INTEGRATION_WITHOUT_NFC_ACCESS.

Can a coding agent write the integration for me?

We provide a hosted MCP server at https://mcp.didit.me/mcp with OAuth sign-in and a copyable integration prompt, free on every account. Give the prompt to your coding agent for the documented setup, including workflow creation through POST /v3/workflows/. MCP helps write the integration and can be used with either the native or the hosted runtime route.

What happens if my webhook is slow or returns an error?

We retry twice, after about one minute and about four minutes, when your endpoint times out or answers a 5xx or a 404 response, then we drop the delivery. Verify X-Signature-V2 before parsing, de-duplicate on event_id, and acknowledge valid deliveries within five seconds. You can resend a dropped delivery from the destination log, or re-fetch with GET /v3/session/{session_id}/decision/.

Where can I see AI in identity verification demonstrated, like at an expo?

A demo can show document capture and OCR, a selfie with passive liveness, a 1:1 face match, and for supported chip-enabled documents an NFC check. Pick a documented sandbox scenario to test how your app and server handle its outcome, then watch the Academy walkthrough of the screens a person sees.

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.