-
Notifications
You must be signed in to change notification settings - Fork 290
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
Missing uid when using local emulator suite #411
Comments
I also wonder about why the first properties are required in local development since they are pointing to an online cloud instance. 😕 |
Did you also set |
Yes I did @kmjennison |
OK, thanks. I'll investigate this when I can make the time, though that probably won't be for a little while. Hopefully, others who have set up the emulator can weigh in here with suggestions. |
I got this error, though I am not using the emulator. The problem was I didn't load the google application credentials properly. In my case, there was an |
@deen13 If the cause of your issue is the same as what @Dig-Doug describes, you'll be able to catch the error by adding |
Same issue as above. Any help would be appreciated |
Same issue but I'm not using the emulator nor is it set in my .env file. Here is what I have observed:
|
Had same issue, the cause was I forgot NextJs is hiding env variables from client side (ones not starting with NEXT_PUBLIC_xxxx. |
It was a configuration issue on my end, adding |
OP (@deen13), I see you're using Docker. For me, this issue was caused by confusing networking (1) between containers within a Docker network and (2) between a Docker container and the host. I have a container than runs my Next.js app with
My solution was to set two environment variables: and use them in the following way with
|
I'm currently trying to setup next.js authentication with this library and the firebase emulator suite. I had success connecting the next-firebase-auth with our cloud test instance but no success with the emulator. Every login attempt fails with an
auth/argument-error
where the uid is null.Versions
next-firebase-auth version: ^0.14
Firebase JS SDK: ^8.9.1
Next.js: 12.0.7
Firebase Tools in Docker: 10.0.1
To Reproduce
Steps to reproduce the behavior:
The exception occurs when calling BaseAuth.createCustomToken.
Error
Emulator Export
Environment
The text was updated successfully, but these errors were encountered: