WARNINGLikelyGuideline 4.8iOSDesign
SIWA Credential State Check Recommended
Apps should check Apple ID credential state on launch to detect if the user has revoked access or signed out of their Apple ID.
Quick Fix
Check credential state when the app launches or returns to foreground. Handle the .revoked and .notFound states by signing the user out and prompting re-authentication.
What Gets Detected
Detection Type:CODE PATTERN
Triggers (any of these):
ASAuthorizationAppleIDProviderAppleAuthentication.getCredentialStateAsyncappleAuth.getCredentialStateForUserRequired if triggered (any of these fixes it):
getCredentialStategetCredentialStateAsynccredentialStateASAuthorizationAppleIDProvider.CredentialState