N
N
nvdfxx2018-10-31 13:49:33
firebase
nvdfxx, 2018-10-31 13:49:33

How to get user password in firebase?

I want to implement the functionality of changing the password in firebase inside the application, for this you need to find out the current user password, how to get it without crutches?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Proskurin, 2018-10-31
@Vlad_IT

Why would you want to know your current password? No one stores passwords in clear text, they store a hash of passwords, and if the hash of the password specified by the user matches the hash of the saved one, then this is the same password. That's how you do it. You don't need to store passwords, and you don't need to know them either. Don't do it.

F
Figment, 2019-02-13
@Figment

In the form of some String, you will not know the user's password. What you can do is:
Ask the user to enter the password again using the reauthenticateAndRetrieveDataWithCredential method . Then you change the password using this method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question