brandonaaskov / gunslinger-client

Angular frontend and Express backend. Simple scaffolding for diving into creating apps. I apologize if you were expecting something Stephen King related.
Mozilla Public License 2.0
1 stars 0 forks source link

Save Users in Firebase #17

Closed brandonaaskov closed 10 years ago

brandonaaskov commented 10 years ago

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.).

brandonaaskov commented 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.

brandonaaskov commented 10 years ago

Actually, I've accomplished this story, but there was an unexpected bug, so I'm going to open an issue instead.