Appraysal
Back to Rules
WARNINGLikelyGuideline 4.8iOSDesign

SIWA Error Handling Missing

Sign in with Apple implementation should handle authorization errors gracefully to prevent crashes and poor user experience.

Quick Fix

Add comprehensive error handling for Sign in with Apple. Handle cases like user cancellation (ASAuthorizationError.canceled), invalid response, and network failures. Show user-friendly error messages instead of crashing.

What Gets Detected

Detection Type:CODE PATTERN
Triggers (any of these):
ASAuthorizationAppleIDProviderASAuthorizationControllerAppleAuthentication@invertase/react-native-apple-authenticationexpo-apple-authentication
Required if triggered (any of these fixes it):
ASAuthorizationErrordidCompleteWithError/authorizationController.*error/iAppleAuthentication.AppleAuthenticationCredentialStateappleAuth.ErrorAppleAuthErrorappleAuthRequestResponse.errorerror.code.canceled.cancelledcatchonErrorhandleError

Check Your App

Scan your project to see if this rule affects your app

Run Free Scan