codebase-berkeley / codebase-berkeley/tgif-voting-portal

Implement Authentication on Frontend (React)

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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](https://reactrouter.com/native/example/auth-workflow)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.