How do I create an admin account profile on Firebase to login to the same interface on my app app. I can't find the option of making a user an admin on Firebase.
There are 2 ways of achieving this, as far as I can think of the problem right now.
Firebase Functions
, and then reading the custom claim value in the frontend through Firebase Authentication
. (process goes through a paid Firebase
Plan)Firebase
plan, what you can do is make a variable
or entry
named admin
or is_admin
in the Firebase Realtime Database
or Firebase Firestore
wherever you are storing your account profile. Now whenever the value is set to true
you can enable the admin
privileges else remove the privileges.