I use Firebase emulators with the auth emulator (very happy with this new feature!)
I signup a user using email and password -> I can see it created in the emulator UI.
I insert some data in Firestore -> it works equally well.
I export the data:
firebase emulators:export local_data
Later on, I restart the emulators with the exported data:
firebase emulators:start --import=local_data
The Firestore data is loaded correctly, but the user I created previously does not exist!
It seems that the auth emulator data is not exported or not imported.
Am I doing something wrong?
With CLI version > 9.1.0 one can export and import auth data from the emulators, cool!
see this Github announcement
According to the documentation:
emulators:export export_directory
Cloud Firestore or Realtime Database emulator. Export data from a running Cloud Firestore or Realtime Database emulator instance
So the emulators:import
and emulators:export
commands currently only work on Cloud Firestore and Realtime Database. As Doug commented, it is a valid feature request, so thanks for filing it on the Github repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With