-
Notifications
You must be signed in to change notification settings - Fork 26
InvalidAuthBlockingTokenError (wrong audience) when using blocking function with Firebase emulators #143
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
Comments
It seems that the functions emulator sets an env variable that allows
I don't mind fixing this since it seems like a very localized issue. |
I can confirm that this works with |
Hey @fediazgon. I was looking into #133 and I believe you are experiencing the same issue. This may not be an issue with the Python SDK, but I still need to do some more investigating. I'll keep you updated on the progress on the other issue and I'll close this one to dedupe it. Please comment if you disagree with my decision to close this issue. Thank you |
I am experiencing the same issue. This is an issue with the local emulator, so I don't think the issue you mentioned @exaby73 is related. I think this issue should be re-opened. @fediazgon did you end up finding a way to get around this issue? |
@joaqo The issue I mentioned, after testing that one, the crash mentioned is the same one here, therefore I deduped it |
@exaby73 The issue you mentioned and this one are both related to authentication, but they are different, deduplicating is not the correct course of action. |
Hi! I have defined the following function:
When running Firebase emulators (auth and functions). I see that in the logs the functions is deployed correctly:
However, when I trigger a user creation with:
I get the following stack trace in the emulator window:
This same example works with
v1
functions and the node SDK (I haven't tried withv2
node SDK). I also made sure to set theGOOGLE_APPLICATION_CREDENTIALS
,GCPROJECT
andFIREBASE_AUTH_EMULATOR_HOST
as is described in other issues.I'm using
firebase-tools = 12.5.4
andfirebase-functions = 0.1.0
.Also, the reason I'm using
curl
to create a user is that, if I create the user from the Firebase Emulator UI, the blocking function is not triggered (but I expect this is normal).The text was updated successfully, but these errors were encountered: