Is there a way to integrate Firebase Admin SDK into my Angular application?
Currently, I am using Firebase Authentication services in my application and everything I need for user registration and authentication is handled by Angularfire2.
I've read that the Firebase Admin SDK is not meant to be used on the front end, so I would have to set up a backend using Node.js and configure it with the credentials of my project. This can be done following the instructions in the Admin SDK documentation.
When trying to import admin from 'firebase-admin'
directly into a service file, I encountered several errors due to the correct implementation of Firebase Admin.
To delete a user, I utilize Cloud Functions to monitor when a user is deleted from the database and then remove them from Firebase Authentication as well.
Since I use Firebase Hosting for my application, I am curious if I can incorporate Express.js. If not, are there alternatives that would allow me to utilize all the User Management functionalities through the Admin SDK in my Angular app?