Open heykc opened 3 years ago
@conorkenahan I'd like you to take the lead on this but I'd also like @JordyPena to shadow you while you work if that isn't too much to ask. This is to kind of get Jordy up to speed with Firebase and the backend side of this stuff. Coordinate some times that might work with both of you once @JordyPena finishes his task that will unblock this task.
Dope!!!!!! Let’s do it Connor
Best Wishes Jordy R Pena Montes
On Feb 2, 2021, at 9:07 PM, Keith Charles notifications@github.com wrote:
@conorkenahan I'd like you to take the lead on this but I'd also like @JordyPena to shadow you while you work if that isn't too much to ask. This is to kind of get Jordy up to speed with Firebase and the backend side of this stuff. Coordinate some times that might work with both of you once @JordyPena finishes his task that will unblock this task.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Description
Refactor the current signup auth function so that once the signup function successfully creates an account using the email and password, it then creates a "User" document that uses the uid of the auth user as the id of the new document, and includes two fields: an email and username field. This document should be sent to a 'Users' collection in our firestore.
Notes
The reasons we want to make a user document for every user is because Firebase does not allow you to 1) add supplementary data to a user auth account, meaning no biography, location, interests, etc. and; 2) find a user or list of users in the user auth collection. I assume this last one is just a general security reason as every auth account holds the user's password and admin roles.
Creating a separate users table that includes their username and email along with bios will allow us to find any use account without the risk of accessing the user's private data, and add supplementary information per user, along with other benefits that may come later
Acceptance Criteria
Notes
You can learn more about the firebase auth api by reading the docs here You can also learn about firestore here
Related Links
blocked by #20 - A new user can fill in their signup information in the signup modal