Skip to content

Issue: Improve error handling and user feedback for authentication failures #55

@Kartikey-Pathak

Description

@Kartikey-Pathak

Currently, when authentication or user-related API requests fail (e.g., user not found, invalid credentials, or server errors), the frontend shows a generic message like "Login failed" instead of displaying meaningful error messages returned from the backend.

This results in poor user experience and makes it difficult for users to understand what went wrong.

Current Behavior
API returns proper error responses (e.g., 404 User not found)
Frontend displays only: "Login failed"
No differentiation between error types
No user-friendly feedback mechanism

Expected Behavior
Display meaningful backend error messages (e.g., "User not found", "Invalid password")
Show proper feedback for different failure cases
Improve UX with consistent error messaging (optional: toast notifications)

Steps to Reproduce
Open Login page
Enter invalid email or password
Submit form
Observe generic error message instead of specific backend message

Type of Issue
🐛 Bug (UI/UX improvement)
📈 Enhancement

Why this matters
Improves user experience, debugging clarity, and makes authentication feedback more meaningful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions