Closed fullybaked closed 1 month ago
Going to keep this issue open since we still need to have each collabie login to the deployed app, so their user is added to firebase.
Then we mentors can do the steps to set up the first list in firebase
items
.users
there should be documents with every authenticated user's email.
b. Inside each of these documents there is a field titled sharedLists
.
c. Inside this field add the shopping list that was just created with the format: /{user UID}/{shopping list name}
I completed this step for everyone who has a user in Firebase. Everyone who has not will need to follow these steps https://the-collab-lab.slack.com/archives/C07FFJBF231/p1723431220257769
Closing as done for now.
Summary
Being able to sign in is a foundational part of our app. Not only will it allow us to connect users to the shopping lists they have access to, it will prevent users from being cluttered with others' data and keep their own data from being messed with. This provides a layer of personalization and security to the app.
Auth is already set up in Firebase but there's no way for users to sign in on the actual site. We already have a
useAuth
hook, we just need to set it up so that we have a solid foundation for the rest of our issues.Acceptance Criteria
useAuth
hook as well as theSignInButton
andSignOutButton
components are imported intoLayout.jsx
.SignInButton
is displayed on every page if the user is not signed in.SignOutButton
is displayed on every page if the user is signed in.Notes
items
.users
there should be documents with every authenticated user's email. b. Inside each of these documents there is a field titledsharedLists
. c. Inside this field add the shopping list that was just created with the format:/{user UID}/{shopping list name}