Fix Authentication Snackbars - Poor Timing and Messaging
Description
🐛 Authentication Snackbar Bug
Problem: Authentication snackbars appear at wrong times with vague messages.
Specific Issues Found:
1. Google Sign-In Cancel Workflow
-
Progress bar takes too long to cancel when user cancels Google sign-in
-
Shows generic "authentication failure, may be..." message
-
Should immediately stop progress and show appropriate message or no message at all
2. Wrong Password Entry
-
Same generic "authentication failure, may be..." snackbar appears
-
Should show specific message like "Incorrect password. Please try again."
3. Unregistered User
-
Same generic snackbar for users who aren't registered
-
Should show "Account not found. Please sign up or check your email."
Current Problems:
-
Snackbars show when user doesn't expect them
-
Messages are unclear ("Authentication error" vs "Sign-in failed. Please try again.")
-
Users don't know what happened or what to do
-
Same generic message for different error types
-
Progress indicators don't respond properly to user cancellation
-
Generic "authentication failure, may be..." used for ALL authentication cases
Fix Requirements:
-
Timing: Only show snackbars after user auth actions
-
Messages: Every authentication case must have specific, helpful messages:
-
Google cancel: No snackbar or "Sign-in cancelled"
-
Wrong password: "Incorrect password. Please try again."
-
Unregistered user: "Account not found. Please sign up or check your email."
-
Apple Sign-In issues: Specific Apple-related messages
-
Network issues: "Connection failed. Please check your internet."
-
Server errors: "Server temporarily unavailable. Please try again later."
-
NO generic "authentication failure, may be..." messages allowed
-
-
Progress bars: Immediately respond to user cancellation
-
Context: Tell users exactly what happened and next steps
-
Comprehensive coverage: Review ALL authentication flows and error cases
Success Criteria:
-
✅ Progress bar immediately stops when Google sign-in is cancelled
-
✅ Every authentication error type shows specific, helpful messages
-
✅ Complete elimination of generic "authentication failure, may be..." messages
-
✅ Users understand what to do next for each error type
-
✅ Snackbars only appear at appropriate times
-
✅ All authentication flows (Google, Apple, Email, etc.) have proper error handling
Time: 2-3 hours