Quick Start
Complete your first mDL verification in under 10 minutes.
Step 1: Initialize the SDK
Initialize the SDK early in your application lifecycle, typically in your App or ViewController. You'll need your API key from the Owl Eyes Dashboard.
VerificationManager.swiftswift
Loading...
Tip: For production apps, initialize the SDK when your app launches using
.taskmodifier so it's ready before any view needs it.Step 2: Create a Verification Session
Create a session specifying the verification channel and what claims (data) you want to request. For this example, we'll use QR code verification to check if someone is over 21.
VerificationManager.swiftswift
Loading...
Step 3: Process Device Engagement
When the holder scans your QR code with their wallet app, they'll present a response. Process this response to complete the verification:
VerificationManager.swiftswift
Loading...
Complete Example
Here's a complete SwiftUI View that implements QR-based age verification:
VerificationView.swiftswift
Loading...
Environments
The SDK supports multiple environments for different stages of development:
| Environment | Use Case |
|---|---|
.production | Live production traffic with real credentials |
.sandbox | Testing with test credentials (no real verification) |
.development | Local development |
Configuration.swiftswift
Loading...
Next Steps
Now that you've completed your first verification, explore these topics:
- Verification Channels – Learn about NFC and Bluetooth LE options
- Claim Sets – Request identity data, photos, and driving privileges
- Session Management – Handle session lifecycle and timeouts
- Error Handling – Handle errors gracefully