I have a unique user creation flow which is as follows:
- User comes to my site for the first time and they click a button.
- I create a User in the DB for them and set a localStorage key with the UID.
- Use goes about creating data and I save the data in the DB and associate it with the UID.
- User comes back, and if they have UID set in localStorage, I show them the data they previously created.
- User can click Register to create a "real" account from which point they will have to login with username and password or another service (e.g. Facebook).
So, how would I accomplish this with Meteor Accounts and the User model?
In a nutshell:
- I need to create User mongo document with no information (about the user).
- I need to authenticate a user by just having a UID (acting as a "password").