Generating an account without a password in Meteor

I would like people to be able to initially use the meteor app without explicitly creating an account, as long as they don't want to share their data or view their data on another device. Even when they were happy to explicitly create an account, I would like the option for that user account to be passwordless (i.e. https://passwordless.net/ ).

But I'm struggling with the first hurdle. How can I verify that a user account does not exist yet and create one if necessary?

+3


source to share


1 answer


There are several packages that look promising:



If none of these are exactly what you want, they should at least provide a good starting point.

An alternative would be to use accounts-password

and automatically create a unique user account for the guest as soon as they perform some important action so that you can store your data. Save the login credentials for this account in localStorage (or cookie). Then, once they are ready to register, move their details from their temp account to their real account and delete the temporary one.

0


source







All Articles