Refactors recently introduced lazy init of Firebase app to allow it to be initialized independently of Firestore by functions that need it, like the recently broken /profile-refresh function.
Thank you @sufyanAbbasi for fixing the deployment issues that were blocking this fix.
@amysorto @shobhitagarwal1612 FYI
Fixes #1846
Apologies in advance for using admin rights to merge this without approval as it's a weekend and the dev site is currently down.
Refactors recently introduced lazy init of Firebase app to allow it to be initialized independently of Firestore by functions that need it, like the recently broken /profile-refresh function.
Thank you @sufyanAbbasi for fixing the deployment issues that were blocking this fix.
@amysorto @shobhitagarwal1612 FYI
Fixes #1846
Apologies in advance for using admin rights to merge this without approval as it's a weekend and the dev site is currently down.