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
Describe the bug
Apparently the Firebase SDK used by serverpod_auth_firebase_flutter has an issue where some service account keys cannot be read. This bug appsup-dart/firebase_admin#7 and this here appsup-dart/firebase_admin#21 probably describe what is going on.
Finding this solutions was difficult, because it was not clear where the issue was coming from (in this case the admin SDK) - maybe there needs to be a way to prefix log output of dependencies to properly trace issues. This might be possible with Zones.
For me generating the key 3 times did the trick because I came across these issues when diving into the dependencies of the auth package.
To Reproduce
Follow the steps in https://docs.serverpod.dev/concepts/authentication/providers/firebase and create a service account key firebase_service_account_key.json - since this is a flaky bug, you might need to generate a couple of files until you encounter the issue :)
Expected behavior
An error message which tells me that my keyfile could not be read (or an error message which suggests that this could be the case).
If I understand the issue correctly, we can't really fix the issue from our side. But what we can do is to improve our documentation so that users are aware of this issue.
Does that sound like an acceptable action based on the bug report?
Yes - I think mentioning it in the tutorial should be enough, maybe add a reminder in the future to reinvestigate this once either of the firebase SDKs leaves alpha?
We no longer depend on the firebase_admin package. We never got around to updating the documentation but my question is if this could be closed now instead?
Describe the bug
Apparently the Firebase SDK used by serverpod_auth_firebase_flutter has an issue where some service account keys cannot be read. This bug appsup-dart/firebase_admin#7 and this here appsup-dart/firebase_admin#21 probably describe what is going on.
Finding this solutions was difficult, because it was not clear where the issue was coming from (in this case the admin SDK) - maybe there needs to be a way to prefix log output of dependencies to properly trace issues. This might be possible with Zones.
For me generating the key 3 times did the trick because I came across these issues when diving into the dependencies of the auth package.
To Reproduce
Follow the steps in https://docs.serverpod.dev/concepts/authentication/providers/firebase and create a service account key
firebase_service_account_key.json
- since this is a flaky bug, you might need to generate a couple of files until you encounter the issue :)Expected behavior
An error message which tells me that my keyfile could not be read (or an error message which suggests that this could be the case).
Screenshots
Serverpod versions
Platform information
Macos arm64
Additional context
An alternative implementation for the firebase admin sdk could be the implementation by Invertase https://github.com/invertase/dart_firebase_admin
The text was updated successfully, but these errors were encountered: