Web SDK
JavaScript SDK for web
Add the Didit verification flow to any web app. Install one package and call one method.
npm install @didit-protocol/sdk-web
Pick the Right Didit SDK: Web, iOS, Android, Flutter & React Native · 3 min · YouTube
Install
Install
Use npm or yarn, or load the script from a CDN.
@didit-protocol/sdk-web, on npm.npm install @didit-protocol/sdk-webStart
Start a verification
Set one callback, then pass the session URL from your server.
Three results
completedThe user finished. Read result.session.status.cancelledThe user closed the flow.failedSomething went wrong. Read result.error.message.The result in the browser is for your screen only. The signed decision reaches your server by webhook.
import { DiditSdk } from '@didit-protocol/sdk-web';DiditSdk.shared.onComplete = (result) => { switch (result.type) { case 'completed': console.log('Status:', result.session?.status); break; case 'cancelled': console.log('Cancelled'); break; case 'failed': console.error('Error:', result.error?.message); break; }};DiditSdk.shared.startVerification({ url: 'https://verify.didit.me/session/3FaJ9wLqX2Mz'});
Frameworks
Works with your framework
The examples repo has a working app for each one.
It also works with plain JavaScript. Modal mode opens the flow over your page. Embedded mode shows it inline, inside an element you choose.
Questions
Questions about the JavaScript SDK
Which frameworks does the JavaScript SDK work with?
Do I need a backend to use it?
Does my API key go in the browser?
How do I get the final result?
How do I install the Didit JavaScript SDK?
Can I show the flow inline instead of in a modal?
What errors can the JavaScript SDK report?
Can I track the user's progress step by step?
Can the selfie step open on the rear camera?
How do I check which SDK version is installed?
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.
- Trusted by EU regulators
After a year of supervised testing, EU financial regulators confirmed that verifying with Didit is safer than checking an ID in person.
- 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
Learn Didit, one short video at a time
Start
Install the SDK
Create an account, get your sandbox key and install the package.
Free sandbox. Credit applies to work-email sign-ups.