🚀 ID Verifier - Digital Credentials API Demo

Digital Credential Verification

This example demonstrates how to request and verify digital credentials using the id-verifier library.

Checking browser compatibility...

Configure Request

Select which document types and information you'd like to request from the user's credentials:

Document Types

Requested Information

Personal Information

Address Information

Document Information

Note: Check the boxes for the document types and information you'd like to request from the user's credentials. All selected claims will be requested from the available credential formats.

Sample Code

Here's the code that would be used to request the selected claims:

// Import the library
import { createRequestParams, getCredentials } from 'id-verifier';
// Create request parameters on the backend
const requestParams = createRequestParams({
  documentTypes: ['org.iso.18013.5.1.mDL'],
  claims: ['givenName', 'familyName', 'ageOver21']
});
// Request credentials on the frontend
const credential = await getCredentials(requestParams);

How it works

  1. Configure your request - Select which information you need from what types of documents
  2. Request credentials - The browser prompts the user to select and share their credentials
  3. User consents - The user reviews and approves the credential request
  4. Credential is returned - The browser returns the requested credential data
  5. Backend verifies - The server validates the credential and extracts information

Supported Document Types

Supported Protocols

Browser Support

This demo requires a browser that supports the Digital Credentials API. Currently, this is an experimental API and may not be available in all browsers.

Note: In a real application, you would: