Keep getting an error on macOS when trying to use Passkeys to login

I keep getting the following error when trying to run Passkey sign in on macOS.

Told not to present authorization sheet: Error Domain=com.apple.AuthenticationServicesCore.AuthorizationError Code=1 "(null)"

The same piece of code is working as expected on iOS.

Some more info:

  • The association file and entitlements are correct and validated as everything is working on iOS.
  • The app is built on SwiftUI and use the same codebase for macOS and iOS
  • Validated that the presentation anchor is also correct on macOS because other SSO login works with the same presentation anchor.

Not sure where the problem is. Followed https://developer.apple.com/documentation/authenticationservices/public-private_key_authentication/supporting_passkeys/ to get the integration.

That's an error that we log about internal state and doesn't contain enough information to diagnose this issue. You should have gotten a more useful error returned in your delegate callback. The issue likely has to do with entitlements or signing, but you'd need the error returned in the callback to confirm.

Hi, I'm also integrating the passkey feature on my Mac and have meet the same error.

Told not to present authorization sheet: Error Domain=com.apple.AuthenticationServicesCore.AuthorizationError Code=1 "(null)"
ASAuthorizationController credential request failed with error: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1004 "(null)"
Application with identifier a is not associated with domain b

I have config the apple-app-site-association link and use ?mode=developer

Keep getting an error on macOS when trying to use Passkeys to login
 
 
Q