This PR solves #70 by setting up authentication via FB provider. This allows us to authenticate users and store users in mongo for retrieval on subsequent login. Originally separated logic for sign up and log in but decided to make it more robust by finding if user already exists in db, if not create new user with data from FB provider. Have kept it with only FB provider for the time being to unblock favoriting of notations and to keep data consistent.
TODOs
Will need to update schema to add new list field for favorites for users to favorite specific notations
May need to add new providers in the future (ie google, github)
Overview
This PR solves #70 by setting up authentication via FB provider. This allows us to authenticate users and store users in mongo for retrieval on subsequent login. Originally separated logic for sign up and log in but decided to make it more robust by finding if user already exists in db, if not create new user with data from FB provider. Have kept it with only FB provider for the time being to unblock favoriting of notations and to keep data consistent.
TODOs