appsup-dart / firebase_admin

A pure Dart implementation of the Firebase admin sdk
Other
44 stars 51 forks source link

Service Account not working #28

Closed TimWhiting closed 2 years ago

TimWhiting commented 2 years ago

I can't get a service account to work with this library. Is there some secret for doing so that needs to be documented?

I'm saving a service-account.json and using Credentials.applicationDefault(), but it does not work. It does work when I remove that (it finds credentials in the .config/configstore/firebase-tools.json). I've tried generating a key for both the firebase-admin service account, and for a custom service account with firebase-admin privileges, but neither approach works.