In-Person Verification
Verify mDL credentials in person using QR codes for device engagement.
Overview
In-person verification uses QR codes to establish a secure connection between the verifier (your application) and the holder's wallet. The holder scans the QR code, selects the requested information to share, and the verification result is returned to your application.
1️⃣
Create Session
Generate verification session with requested claims
→
2️⃣
Display QR
Show QR code for holder to scan
→
3️⃣
Get Result
Receive verified claims
Complete Example
in-person-verify.tstypescript
Loading...
Session Options
Configure the session with these options:
| Option | Type | Description |
|---|---|---|
mode | 'in_person' | Verification mode (default for QR) |
requestedClaims | ClaimSet | string[] | Claims to request from the holder |
verificationPurpose | string | Purpose shown to the holder |
sessionTimeout | number | Session timeout in milliseconds |
retainSessionData | boolean | Keep session data after completion |
QR Code Options
qr-options.tstypescript
Loading...
Session Events
Subscribe to session events for real-time status updates:
events.tstypescript
Loading...
Handling Results
results.tstypescript
Loading...
Age Verification Example
Here's a focused example for age verification at a retail point of sale:
pos-age-verify.tstypescript
Loading...