-
Notifications
You must be signed in to change notification settings - Fork 892
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
auth/invalid-api-key
error will occur if it is not set, even when using the auth emulator
#6776
Comments
Hi @ishowta, thanks for bringing this to our attention. I was able to reproduce the behavior. Let me check what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share. |
This is still a problem; it means that the firebase emulators cannot work without a real existing firebase GCP project - ie they cannot work standalone. I presume this also means no offline development, no sandbox testing etc... Which is a bit of a shame - I would have preferred the test environment to be completely isolated from Google Cloud (perhaps on a switch if both behaviours are require) |
for some reason this has been an issue for me as well... until now |
Would really like to see Firebase's documentation improved for the demo option. Would be ideal to show users how to get setup with a demo project without a pre-existing project. |
Hi Ben, Actually - now its working ok... Versions;
When I run the emulators I specify the demo project: And I don't provide any more config - in the functions startup its just: |
Personally, I solved my case with template string in the key. I don't know why, but the env value was not working when passed to the object. |
Okay so I was having the same problem. Following steps helped me:
(yes no ""/'' or spaces)
(optional)
Hope this helps |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
same as #4882
related to 5218
When using the auth emulator, apikey probably should not be necessary, but an
auth/invalid-api-key
error will occur if it is not set.When I put a random value in
apiKey
it seems to work fine.The check for
apiKey
is done on the client side, which was appended before the auth emulator was created, so it is probably not needed.https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth/src/core/auth/register.ts#L68-L71
Steps to reproduce:
Initialize auth without specifying apiKey in initializeApp
Relevant Code:
The text was updated successfully, but these errors were encountered: