Ad

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?

Ad

Answer

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.

Ad
source: stackoverflow.com
Ad