'Firebase: export user accounts’ email and password hashes
I use email/password authentication for my Firebase.
I’m considering moving to a different backend and I’m wondering if there is any way to export user emails/password hashes so that I can authenticate them outside Firebase?
I would also need to know the hashing algorithm.
Solution 1:[1]
You can use the firebase-cli by writing firebase auth:export save_file.csv --format=csv
or firebase auth:export save_file.json --format=json
More details can be found on the firebase documentation page: https://firebase.google.com/docs/cli/auth#authexport
Solution 2:[2]
I did not get any option on firebase console UI. So you need to install firebase tool using npm.
npm install -g firebase-tools
and then login using
firebase login
after login you need to run one of command
CSV Format
firebase auth:export save_file.csv --format=csv --project <project-id>
JSON Format
firebase auth:export save_file.json --format=json --project <project-id>
you can get the project-id from home screen of firebase console
Solution 3:[3]
ex corret firebase auth:export save_file.csv --format=csv --project=my-name-project-fb
Solution 4:[4]
Best way just download the Firefoo Application and login with your project everything okay
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Sunil Garg |
Solution 3 | Thiago Vieira |
Solution 4 |