Associated domain for passkeys not recognized on macOS but works on iOS

I'm trying to implement passkeys in my multiplatform (iOS/macOS) app, and it works on iOS, but on macOS I get the following errors:

ASAuthorizationController credential request failed with error: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1004 "(null)"

Passkey authorization failed. Error: The operation couldn’t be completed. Application with identifier <identifier omitted> is not associated with domain <domain omitted>

The associated domain is correctly configured, since it works on iOS. Adding ?mode=developer also doesn't resolve the problem.

When you added ?mode=developer, did you also turn on SWC developer mode on your Mac?

sudo swcutil developer-mode -e 1

Sorry, I forgot to follow up on this: For whatever reason, after about a day, it started working on Mac too.

Associated domain for passkeys not recognized on macOS but works on iOS
 
 
Q