-
Notifications
You must be signed in to change notification settings - Fork 961
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
config credentials failing in emulator #445
Comments
Thanks for the report! This is a bug in the way that the local emulator deals with default credentials. This will unfortunately take some time to fix, in the meanwhile, you can work around this by initializing firebase-admin with a service account (https://firebase.google.com/docs/admin/setup#initialize_the_sdk) |
This workaround to the |
Is there also a bug with how the emulator deals with config? Currently, running As per these instructions works as expected once deployed and in production logs. However, |
We do not yet support emulation of config values, see https://firebase.google.com/docs/functions/local-emulator#install_and_configure_the_cloud_functions_shell for the workaround |
Closing for inactivity. |
@laurenzlong is this fixed already? |
Version info
3.9.2
Steps to reproduce
admin.initializeApp(functions.config().firebase);
admin.auth().getUserByEmail("fake@gmail.com")
Expected behavior
Works in emulator.
Works when deployed.
Actual behavior
Fails in emulator (Error: No Firebase project was found for the provided credential.)
Works when deployed.
https://gist.github.com/kiwipxl/791af036794a24ab8cdceffc8a626836
The text was updated successfully, but these errors were encountered: