Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Authentication on Frontend (React) #29

Open
KnightAsterial opened this issue Apr 25, 2021 · 0 comments
Open

Implement Authentication on Frontend (React) #29

KnightAsterial opened this issue Apr 25, 2021 · 0 comments

Comments

@KnightAsterial
Copy link
Collaborator

KnightAsterial commented Apr 25, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant