Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can firebase setup password authentication if user already has passwordless sign on?

I am using firebase in my frontend JS project (firebase web). The current authentication I have setup is using the passwordless (email link) authentication for users. Is it possible to also set up password sign on for an already existing user with passwordless sign on?

like image 934
TheRyan722 Avatar asked Oct 24 '25 04:10

TheRyan722


1 Answers

I figured out that you can just call:

firebase.auth().currentUser.updatePassword()

to set a password for a user that already has passwordless sign on set up.

like image 171
TheRyan722 Avatar answered Oct 25 '25 17:10

TheRyan722



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!