简体   繁体   中英

Firebase admin how to create user with passwordless signin?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM