-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No access to ServiceAccountCredential class #8
Comments
Did you try FirebaseAdmin.instance.certFromPath instead of ServiceAccountCredential ?
|
Yes I have try again .. but file name too long error 36 |
I created custom service-account.json manually and wrote there json directly.
|
@akfaisel I'm also having to do this to securely access the creds. I have mine stored as a cloud runtime variable, not locally in a .env or .json that gets built into the container. Since this is the most secure way to store the key for this context, I feel like it should be supported out of box - either by checking |
I'm not sure whether the sample is outdated, but the first example on pub.dev doesn't seem to work. Even though I imported credentials.dart, even though I can see the ServiceAccountCredential class in the implementation file. I get undefined class whenever I try to use ServiceAccountCredential.
I followed install and import as per pub.dev.
Also Flutter (or at least VSCode) doesn't seem to like the credentials.dart import.
The text was updated successfully, but these errors were encountered: