Skip to content

[BUG]: Auth failure redirects to /login, but no /login route exists #393

Description

@shwetd19

Bug Description

Description

frontend/src/context/authContext.tsx line 69 navigates to /login when token verification fails, but App.tsx defines no /login route. The navigation falls through the * catch-all (App.tsx line 105) and lands on /.

Impact

A user with an expired/invalid token is silently dumped on the home page instead of the auth screen, with no indication they were logged out.

Suggested Fix

Redirect to the actual auth route (/auth — see App.tsx route list), or add a /login alias route.

Steps to Reproduce

No response

Logs and Screenshots

No response

Environment Details

No response

Impact

High - Major feature is broken

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions