-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
π 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.
- 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
