This repo assumes that your passwords are encryped using BCRYPT
. If you are using a different encryption please refer to the firebase docs https://firebase.google.com/docs/auth/admin/import-users
- Run
npm i
in terminal - Copy the
.env.sample
file to.env
and fill in using your Firebase credentials
- Run
testImport.js
- Check the Auth and Firestore sections in Firebase to see if the sample data from the users.json has been correctly uploaded
- Export your user data to
user.json
making sure the object looks like the existing i.e. [{id: '', email: '', pwd: ''}] - Run
node bulkImportUsers.js
to run the import
- Run
node bulkDeleteItems.js
to run the delete script