Add the Firebase Admin SDK to your server
Read moreHow do I know if Firebase is initialized?
You can try to get the Firebase app instance , in it’s code firebase checks if it’s initialized, if not it throws an IllegalStateException . Then you can check to see if your app is already initialized.
Read moreWhere do I initialize Firebase react?
Add Firebase to your React app
Read more