firebaseAdminInitConfig object in init function does not require all necessary fields for firebase-admin. #624
-
When setting up firebase-admin, I used to specify all of those attributes: const serviceAccount = { if (!admin.apps.length) { export { admin };` However, now, in firebaseAdminInitConfig, only those are required:
I don't want something to go wrong but how can I specify all the other attributes that you didn't ask for? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We initialize |
Beta Was this translation helpful? Give feedback.
We initialize
firebase-admin
by spreading the properties you define in thefirebaseAdminInitConfig
object, so you can add whatever you need:https://github.com/gladly-team/next-firebase-auth/blob/v1.x/src/initFirebaseAdminSDK.js#L24