You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: