I am working on a project where azure functions will be used as middleware to connect the frontend to a firebase backend. Azure functions should handle authenticating users via firebase auth, CRUD actions with firestore. However, I'm having problems grasping how to do some things.
- Do I need to initialize firebase app in every azure function call?
- How do i check if the user is authenticated and can change the data in the firebase.
- I might have more questions that I'm not even aware of right now.
Any help is appreciated. Thank you!