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 iin terminal - Copy the
.env.samplefile to.envand 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.jsonmaking sure the object looks like the existing i.e. [{id: '', email: '', pwd: ''}] - Run
node bulkImportUsers.jsto run the import
- Run
node bulkDeleteItems.jsto run the delete script