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

Viewed 347

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?

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.

Related