Open
Description
opened on Sep 18, 2024
Operating System
Windows 11
Environment (if applicable)
Vercel Edge with Qwik
Firebase SDK Version
10.13.1-canary.16d62d4fa (or lower)
Firebase SDK Product(s)
Auth
Project Tooling
Qwik (1.8.0)
Detailed Problem Description
When I use getAuth()
on the server inside a Qwik app, I get the Service Auth is not available
error. The local testing environment has no problems and works as expected.
It is literally something that gets errored out in Qwik with getAuth()
.
Possibly related to #8355
While I'm not sure why the error is thrown, it is coming from here:
J
Steps and code to reproduce issue
I made a Repo:
- Add your Firebase environment variables to
.env
and to Vercel Edge environment variables.
PUBLIC_FIREBASE_CONFIG={"apiKey":....,"authDomain"...}
-
Deploy to Vercel Edge.
-
Sign in with Google.
-
Click the
about
link in navigation. -
See error thrown.
If have isolated the error to getAuth()
. This app doesn't use initializeApp
or initializeServerApp
, but the error is the same in either case.
Here is failing code.
J
Activity