Skip to content

Implement Authentication on Frontend (React) #29

Open
@KnightAsterial

Description

@KnightAsterial

Task: Set up every react page to use isAdmin information for conditional rendering

  • write a getProfile endpoint (or similar) that checks if the user is logged in, and if so, returns their user information (everything from their users table row). Pass this information throughout the application so components know how they should conditionally render
  • fix all hard coded user information on EVERY page to use the profile information that we request from the backend above
  • set up redirects so that users who have not logged in are redirected to the login page. Checkout this link

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions