Hello FlutterFlow Community,
I'm currently developing a project that consists of a mobile app and an admin dashboard, both built with FlutterFlow and connected to the same Firebase database. For the mobile app, I have security rules in place to ensure users can only access or modify their own information. However, I need to enable broader access in the admin dashboard to allow admins to modify or delete files belonging to different users.
I understand that this typically involves using the Firebase Admin SDK to set custom claims or admin roles, but I'm not sure how to integrate this into the FlutterFlow environment. Here's what I'm trying to achieve:
Admins should be able to manage all user files through the admin dashboard.
Regular users should only have access to their own files, as per the existing security rules in the mobile app.
My question is: How can I add Firebase Admin SDK to my FlutterFlow project, or is there an alternative way to manage admin roles within FlutterFlow so that admins can edit or delete other users' files? I'm looking for a solution that would allow me to securely authenticate users as admins and give them the necessary permissions within the admin dashboard.
Any guidance or insights on how to set this up correctly within the FlutterFlow environment would be greatly appreciated. If there are specific steps or code snippets that you could share, that would be incredibly helpful.
Thank you in advance for your assistance!