V1 to V2 Migration Guide
Overview of Changes
What's New in V2
Breaking Changes
Backend Migration
1. Update Dependencies
2. Update Constructor
3. Update Configuration
4. Update Verification Method
5. Handle New Response Format
Frontend Migration
1. Update Dependencies
2. Update QR Code Configuration
3. Important: Disclosures Object
Smart Contract Migration
1. Update Contract Inheritance
2. Update Hub Addresses
3. Handle New Data Structure
Common Migration Issues
1. Configuration Mismatch
2. Missing Attestation ID
3. Invalid User Context Data
4. Document Type Not Allowed
Testing Your Migration
1. Test with Mock Passports
2. Test Both Document Types
3. Verify Configuration Switching
Best Practices
1. Configuration Management
2. Error Handling
3. Security Considerations
4. Performance Optimization
Resources
Need Help?
Last updated