Skip to content

Fix: no user details is visible on the UI even when the user is logged in #16

@alronova

Description

@alronova

📝 Description

User details such as username, number of attacks run, and other related metadata are currently not visible on the UI.
This issue occurs because the UserData in the NavBar.jsx is null and not being fetched from the database.
The task is to implement the logic to properly retrieve and display these user details in the NavBar on the user details card.

✅ Tasks

  • Create an endpoint for fetching details from the db to the auth-server say, /api/auth/getUserInfo.
  • Implement an API call from the UI to fetch user details from the database via that endpoint of the server.
  • Integrate the fetched data into the UI on the user profile card in the NavBar.
  • Ensure real-time updates if the user runs additional attacks (optional).
  • You may add more info if possible.

🎯 Expected Outcome

  • User details (e.g., username, total attacks run) are correctly displayed on the UI.
  • Data is fetched dynamically from the database rather than being hardcoded or missing.
  • Loading and error states are handled smoothly without breaking the UI.
  • Test and validate the data being displayed matches the database records.
  • No impact on existing attack result display or functionality.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions