Appraysal
Back to Rules
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.getCredentialStateForUser
Required if triggered (any of these fixes it):
getCredentialStategetCredentialStateAsynccredentialStateASAuthorizationAppleIDProvider.CredentialState

Check Your App

Scan your project to see if this rule affects your app

Run Free Scan