If you already have the OpenID4VP working on your app, you need to configure a deep link to get the openid4vp://
URL and start the flow.
- Go to the Info tab
- Find the "URL Types" section and click on the add symbol (+) to create a new one
- Fill the "Identifier" field with anything that you want to help you identify this URL type (e.g., OID4VP)
- Fill the "URL Schemes" field with
openid4vp
Add the following to your @main struct : App
.
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.onOpenURL { url in
// OID4VP flow integration
}
}
}
}
And now your app is ready to handle openid4vp://
URLs!