ASAuthorizationAppleIDProvider.credentialRevokedNotification being sent after a successful login attempt

Hi all,

I have an observer set up to monitor any time the `credentialRevokedNotification` is posted from Apple's backend. However it seems that this is being posted every time a user successfully attempts to log in. `didCompleteWithAuthorization` is called, along with a valid authorization.credential. Should I disregard that first notification? Is there a reason as to why it's being sent each time? This is in the simulator and I've disassociated my appleId from my app multiple times.


Thanks!

I've tested it with the Juice app by dropping:


NotificationCenter.default.addObserver(forName: ASAuthorizationAppleIDProvider.credentialRevokedNotification,

object: nil,

queue: nil,

using: { [weak self] notification in

guard let self = self else { return }

print("Received the revoked notification. \(notification)")

})


to the LoginViewController's `viewDidLoad` method. The statement gets printed each time.

I have the same issue! Is it a bug? I think so.. anyone can help us?

Wow, I hadn't checked this thread in a few months. Happy to finally see I'm not the only one having issues. It's still happening to me and I haven't found any information as to whether this is intended or not. If anyone knows, please share!!!

Same problem here

Works fine for me in 14.5

Code Block
NotificationCenter.default
      .publisher(for: ASAuthorizationAppleIDProvider.credentialRevokedNotification)

ASAuthorizationAppleIDProvider.credentialRevokedNotification being sent after a successful login attempt
 
 
Q