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-authenticationRequired if triggered (any of these fixes it):
ASAuthorizationErrordidCompleteWithError/authorizationController.*error/iAppleAuthentication.AppleAuthenticationCredentialStateappleAuth.ErrorAppleAuthErrorappleAuthRequestResponse.errorerror.code.canceled.cancelledcatchonErrorhandleError