Skip to content
Advertisement

How do i get the new Password stored in my firebase realtime database in android studio

I just realized that when I press the forgot password in my app and change the password the password is not changed in the realtime database.Is it possible to change the realtime database as well? This is my forgot password page code

JavaScript

this is the value stored in my database

JavaScript

Advertisement

Answer

Firebase Authentication doesn’t store the user credentials in the Firebase database.

If the user credentials are stored in the database, it’s because your application code stores it there. You will need to update it in the database by running the same code as you ran when you saved the credentials in the database initially.

Something like this could for example update the password:

JavaScript

Note: it is a really bad idea to store the user’s credentials in clear text like you’re doing, and I highly recommend leaving it to Firebase Authentication to store that data securely for you.

Advertisement