Why is databaseURL required during init?
Closed this issue · 1 comments
borisyordanov commented
Describe the bug
I'm unable to provide the databaseURL
the init
function demands because I don't use Firebase's DBs. Passing an empty string silences the error and the library functions seemingly fine. It seems unnecessary for it to be required.
Versions
next-firebase-auth
version: 1.0.0-canary.19
Firebase JS SDK: 9.19.1
Next.js: 13.2.1
To Reproduce
Steps to reproduce the behavior:
- Call
init
in a TS file with a firebaseAdminInitConfig that's missing adatabaseURL
key - Expect a TS error about a missing key
Expected behavior
Firebase auth and the Firebase DB are separate services. next-firebase-auth
should not require information about a service that my Firebase project doesn't even use.
kmjennison commented
You're right, it shouldn't be required. Firebase docs show databaseURL
as optional:
- JS SDK:
initializeApp
and options interface - Node admin SDK:
initializeApp
and options interface
Please feel free to make a PR to update that type!