Closed borisyordanov closed 1 year ago
You're right, it shouldn't be required. Firebase docs show databaseURL
as optional:
initializeApp
and options interfaceinitializeApp
and options interfacePlease feel free to make a PR to update that type!
Describe the bug I'm unable to provide the
databaseURL
theinit
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.1To Reproduce Steps to reproduce the behavior:
init
in a TS file with a firebaseAdminInitConfig that's missing adatabaseURL
keyExpected 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.Debug and error logs![image](https://user-images.githubusercontent.com/12392666/231402809-03eac12b-4549-4560-b775-839713de2872.png)