How can I know when ASAuthorizationController is cancelled?

I'm only seeing delegate methods for success and error, but none for cancelling.

Is this case really not supported? If not, is there a workaround?
I assume by cancel case, you want to be notified when the user cancels the Sign in with Apple login flow... Is there some functionality you are trying to achieve with that?

Feel free to file a Suggestion through our Feedback Assistant: https://feedbackassistant.apple.com/welcome

I assume by cancel case, you want to be notified when the user cancels the Sign in with Apple login flow.

Yes, when the user presses the "Cancel" button.

Is there some functionality you are trying to achieve with that?

Yes, I'm using the ASAuthorizationController with both ASAuthorizationAppleIDRequest and ASAuthorizationPasswordRequest, which, if I understood correctly, presents the sheet only if the user already has an existing Apple or password account.

Only if the user doesn't have an existing account, or cancels the sheet, do we want to present our (manual) Log in / Sign up screen. So, for this, I want to know when the sheet is cancelled, or else, our Log in / Sign up screen never shows up.

Would it be ok to swizzle the private authorizationDidCancel: method as a workaround?
I just noticed that there's a ASAuthorizationErrorCanceled. Any idea why it isn't used?
It actually works, my issue was that I didn't keep a strong reference to the object that creates the ASAuthorizationController.
How can I know when ASAuthorizationController is cancelled?
 
 
Q