Closed brandonaaskov closed 10 years ago
To wrap up the Firebase Simple Login stuff I moved ahead with this, and now have this working. However, there's one remaining issue (I'll create a checkbox in the description) where if a user has logged in before, but clears their cookies, they'll generate a new user. Instead, it needs to be looked up first by email.
Actually, I've accomplished this story, but there was an unexpected bug, so I'm going to open an issue instead.
When a user logs in, I want to save that information so I can user it later for analytics purposes just to track the user journey and uniques and all that jazz. Problem is, with Firebase Simple Login the user objects that come back aren't consistent because the profiles that people use aren't consistent (to be clear - this is no fault of Firebase).
I need the
$set()
call to/users
to use a consistent id. I don't know what the best solution for this is, but each user should have an aggregate of all the different profiles within it, probably as children (e.g./users/[unique id]/facebook/
,/users/[unique id]/github/
,/users/[unique id]/twitter/
, etc.).