AuthenTrend / flutter_passkey

A Flutter plugin for Passkey.
MIT License
6 stars 9 forks source link

For iOS do we need to add associated domain capability? #9

Open chunsfire opened 1 month ago

chunsfire commented 1 month ago

In order to implement webauthn passkey registration or authentication flow, iOS mandates to have associated domain capability added. This is due to underlying ASAuthorization framework.

So does this package also needs associated domain capability enabled & added in the project?

CatMLily commented 1 month ago

You should config your own associated domain in your project and server. First, you should add your domain in your xcode project. domain And then you should create a apple-app-site-association file in your domain server. You can check if apple'cdn has catched your apple-app-site-association config via this link https://app-site-association.cdn-apple.com/a/v1/your.domain.name

reference: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains?language=objc