JustinGuruTech / todo-react-firebase

Todo web-app made using react, firebase, and materialUI.
0 stars 1 forks source link

Add User Accounts #3

Closed TheDizruptor closed 4 years ago

TheDizruptor commented 4 years ago

Currently there is only 1 todo list stored in the database and anyone who can access the website can tinker with it. Adding user accounts will be a bit time consuming but relatively simple and will allow individualized todo lists. Authentication will be handled with Firebase. Each User needs to have a document corresponding to their unique ID in Firestore that contains their todos. Structurally, Firestore would stay nearly the same. The web page needs a public facing page (Issue #4 ) and a protected route that only shows if a user is authenticated. User ID is returned on sign in and stored in sessionStorage along with the session token, valid for maybe an hour before becoming invalidated. Subsequent queries will verify the session token with Firebase.

TheDizruptor commented 4 years ago

User account sign in/sign up/sign out fully functional. Currently no profile page implementation but that will come eventually.