问题
I am looking at the following docs to create a user using the Node.js Firebase admin SDK: https://firebase.google.com/docs/auth/admin/manage-users#create_a_user
However, I want to create a user with passwordless (email link) sign-in, not with a password. Is this possible?
What happens if I don't specify a password for the user?
My web-app currently uses passwordless signin, so it works normally.
回答1:
I just tested and figured it out. If you don't set a password for the user, the user will not have any sign in methods set for them (asside from creating a custom token from the admin SDK and signing in with that).
However if you then send an email sign-in link for the user, and they sign in through the link, it will add the passwordless method to their account.
来源:https://stackoverflow.com/questions/57778372/firebase-admin-how-to-create-user-with-passwordless-signin