I've been trying to use ASAuthorizationSecurityKeyPublicKeyCredentialProvider to implement Webauthn for physical security keys. The API seems simple enough, yet for some reason I get a message saying "no credentials found for this app on this security key" which is... not how FIDO2 Webauthn keys work I don't think?
If I open the website in Safari the same key works fine with browser-based Webauthn, which brings up the exact same native UI for using the key, except without the strange error at the end.
I've triple-checked that the relying party ID is correct (and it is finding the apple-app-site-association file on the server). If that were wrong the entire passkey flow wouldn't even open.
Is there something I might be missing here? Something not configured right on the phone I'm using to test, perhaps?