Mac OS Big Sur, Can't sign in with Apple

Hello!
I have a project with Apple Sign-in. It works on Catalina, but doesn't on Big Sur. I get an error

[com.apple.authkit] Failed to establish connection between notification center endpoint and daemon service with error: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>}

when trying to create ASAuthorizationAppleIDProvider like so _appleIdProvider = [[ASAuthorizationAppleIDProvider alloc] init]
Mac OS Big Sur, Can't sign in with Apple
 
 
Q