How can I fetch Firebase API key from Express backend and then do firebase.initializeApp()

Solution 1:

So I tried and found out that there is no way that we can fetch first and initialize, so I had to go other way around.