You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, this tool requires a service account credentials.json file to be specified to be able to access Google Firestore rules API. I think we should update it to allow gcloud auth instead or as an alternative.
However, I have verified it works if we do the following:
npm install -g @google-cloud/cloud-sdk
open new terminal so gcloud is on the PATH
run gcloud auth application-default login and gcloud config set project [PROJECT_NAME]
After that, we do not need credentials.json if we update firestore-backup-restore to initialize firebase with:
Right now, this tool requires a service account credentials.json file to be specified to be able to access Google Firestore rules API. I think we should update it to allow gcloud auth instead or as an alternative.
However, I have verified it works if we do the following:
npm install -g @google-cloud/cloud-sdk
gcloud auth application-default login
andgcloud config set project [PROJECT_NAME]
After that, we do not need credentials.json if we update firestore-backup-restore to initialize firebase with:
Firebase.initializeApp({ credential: Firebase.credential.applicationDefault(), databaseURL: 'https://[PROJECTDB_NAME].firebaseio.com' })
The text was updated successfully, but these errors were encountered: