-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I'm facing challenges in handling authentication errors. Specifically, I'm unable to find a clear and robust way to deal with errors such as wrong passwords, invalid email addresses, etc.
I have noticed that there is a nullable string named context.authNotifier.error that seems to be related to authentication errors. However, the documentation does not provide sufficient information on the possible error messages that can be encountered. Even if I had this information, relying on string validation for error handling is not considered a best practice.
I propose introducing a new enum variable, let's call it AuthError, that enumerates possible authentication error types. This would make error handling more structured and easier to manage. Developers can then listen to this enum variable and display appropriate error messages in the user interface.