Skip to content

Authenticated users still see “Sign Up” in the navbar after login/signup #1347

Description

@Error-Krishna

Description

Description

After successfully logging in or signing up, the desktop navigation bar continues to display the "Sign Up" button even though the user has been authenticated.

Steps to Reproduce

  1. Open the application.
  2. Log in with an existing account or create a new account.
  3. Observe the navigation bar after authentication.

Expected Behavior

The navbar should update to reflect the authenticated state by hiding the "Sign Up" button and displaying the appropriate authenticated navigation options.

Actual Behavior

The "Sign Up" button remains visible after successful authentication.

Additional Information

The navbar appears to use different authentication checks across its components, resulting in inconsistent rendering of the authenticated state.

Proposed Solution

Use a single, consistent source of truth for determining the user's authentication state throughout the navbar.

Ensure all navbar components rely on the same authentication state so that the UI updates consistently after a successful login or signup.

Screenshots

AFTER SIGN UP
Image

BEFORE SIGN UP
Image

Browser 🥦

Google Chrome

Checklist ✅

  • I checked and didn't find similar issue
  • I have read the Contributing Guidelines
  • I am participating in JWOC
  • I am participating in IWOC
  • I am willing to work on this issue (blank for no).

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: todo ⏳This issue is yet to be seen by the maintainer of the project.🐞 bugThis is a patch, generally fixing some bugs.

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions