Swift credentialState(forUserID:) async form throws on .notFound
ASAuthorizationAppleIDProvider's header says an error is always passed with the NotFound credential state, and the Swift async variant credentialState(forUserID:) is async throws, so under SE-0297's rule a .notFound result surfaces as a thrown error, never as .notFound. Wrap getCredentialState(forUserID:completion:) in a continuation that returns both state and error if you need to tell notFound apart. Also, notFound only means the Apple Account currently signed in on this device has no Sign in with Apple relationship with that user id, which is normal on a family iPad or a second Apple Account: only act on it for an id this device itself received from a native sign-in, and never sign people out because a server says their account last used Apple.