Skip to content

🐛 Bug Report: Navbar Still Shows Login/Signup After Login — No Logout Option Available #110

@thissidemayur

Description

@thissidemayur

📜 Description

Description:

After a user logs in successfully, the navbar still shows "Login" and "Signup" options, which can be confusing. It gives the impression that the user is not logged in, even though they are.

Additionally, there's currently no "Logout" button or functionality implemented, so users have no clear way to log out of their session.

This breaks the expected authentication flow and may affect session handling and UX.

Proposed Fix:

I’d like to work on this issue from scratch. Here’s what I plan to do:
1.Detect login state using the existing auth mechanism
2. Dynamically update the navbar to:

  • Show "Logout" when the user is logged in.
  • Hide "Login" and "Signup" after login.
  1. Implement a proper Logout function that clears the session/token and redirects the user to the login or home page.

🙋‍♂️ Request:

Please assign this issue to me if it’s valid — I’d be happy to implement the fix and make the UX smoother for logged-in users.

💻 Operating system

Linux

What browsers are you seeing the problem on?

Chrome

📃 Relevant Screenshots (Links)

demo Screenshot and screenshots showing the issue

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions