35
votes

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.

3
Where are you going to export them?nicael
@nicael Into a MySQL DB.Vlad GURDIGA
This is currently a manual process, and not exposed via the tooling on the website. Contact [email protected] and they can handle this for you.Rob DiMarco

3 Answers

51
votes

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

21
votes

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

2
votes

ex corret firebase auth:export save_file.csv --format=csv --project=my-name-project-fb