A JavaScript library that makes digital ID verification simple. Request information from mobile driver's licenses, photo IDs, and other digital credentials with just a few lines of code.
ID Verifier is an open source JavaScript library that lets your website or app ask users to share their digital ID (like a mobile driver's license) and then verify that it's real and trustworthy.
Think of it like a bouncer at a club who can instantly verify if someone's ID is legitimate, but for digital credentials instead of physical cards.
Instead of building digital ID verification from scratch, you get a working solution in hours. The library handles complex standards like OpenID4VP and ISO mDoc protocols.
Automatic verification against trusted issuer lists, cryptographic security, and compliance with emerging digital identity standards.
Request only the information you need (like "over 21" instead of full ID details). Users never share their complete ID, reducing your liability and compliance burden.
Someone on your platform needs to prove who they are (age verification, account setup, etc.)
Your platform asks the user to share their mobile driver's license or other digital credential
The library securely receives, decrypts, and verifies the credential is authentic and from a trusted source
Your platform receives only the specific information you requested (name, age, etc.) in a verified, trustworthy format
// Import the library
import { generateNonce, ... } from 'id-verifier';
// Generate security parameters on backend
const nonce = generateNonce();
const jwk = await generateJWK();
// Create credentials request on backend
const requestParams = createCredentialsRequest({
documentTypes: [DocumentType.MOBILE_DRIVERS_LICENSE],
claims: [Claim.GIVEN_NAME, Claim.AGE_OVER_21],
nonce, jwk
});
// Request credentials from user on frontend
const credentials = await requestCredentials(requestParams);
// Process and verify the response on backend
const result = await processCredentials(credentials,
{ nonce, jwk, origin });
// Use verified data
if (result.valid && result.trusted) {
console.log('User verified:', result.claims);
}
That's it! The library handles all the complex cryptography, protocol negotiation, and trust verification behind the scenes.
ISO 18013-5 mDL standard used by many US states
ISO 23220 standard for general photo identification
European Digital Identity framework
Japanese national identification system
Verify customers are over 18 or 21 for age-restricted products without storing sensitive personal information.
Streamline KYC processes with instant, verified identity information for account opening and compliance.
Verify driver's licenses for car rentals, verify age for property rentals, or confirm identity for high-value item sharing.
Verify student identity for online courses, certifications, or age-appropriate content access.
Verify patient identity for remote consultations, prescription services, or medical record access.
Verify age for age-restricted events, confirm identity for VIP access, or streamline event check-ins.
Works in modern browsers that support the Digital Credentials API
Can run on your backend for secure credential processing
Optimized for mobile devices where most digital IDs are stored
Uses industry-standard encryption and digital signatures
Automatically verifies credentials against trusted government sources
Ensures credentials haven't been revoked or expired
ID Verifier is open source and free to use. Start integrating digital ID verification into your platform today.