iOS API
The mobile application must interact with the Sehaci iOS SDK and Apple Wallet (PassKit Framework) in the correct order to retrieve encrypted mobile driver's license (mDL).

Initalization
To start user document request, a nonce value has to be requested from the SDK. This nonce, with appropriate entropy, serves as a salting value for secure document encryption.
The return type is PKIdentityRequest , which can be directly used in the next step for the request to Apple Wallet.
Since the initalization method uses async-await , you can use guard statement to improve error handling.
Request to Apple Wallet
Create a controller responsible for interaction with the Apple Wallet
Check if the user has an mDL stored in Wallet
The request on the
PKIdentityAuthorizationControllermust includeidentityRequestobject returned in the Initalizaton step.
Verify Document
After receiving the encrypted mDL from Apple Wallet, it must be decrypted, and the document data elements must be verified and validated:
The document's verification status can be checked using Verify API, via Webhooks, or manually in the Sehaci Portal.
Last updated