Skip to content

Handle Authentication Errors Effectively #22

@tobiasht

Description

@tobiasht

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions