the-collab-lab / tcl-75-smart-shopping-list

2 stars 1 forks source link

1. As a user, I want to be able to sign in to the app. #1

Closed fullybaked closed 1 month ago

fullybaked commented 1 month ago

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

Notes

deeheber commented 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

  1. The collection itself: a. Create a collection using an authenticated user's UID as the collection name. b. Add a document with a list name. c. Add a collection using the name items.
  2. Giving access to users: a. Inside the collection 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}
deeheber commented 1 month ago

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.