As Firebase Authentication does not natively support roles, you need to store user roles separately. The best approach is to use Firestore
or Realtime Database to manage user roles.
users
collection in Firestore
with each user's uid
, email
, and role
.Firestore
when they log in and store it in the app state.Check this documentation for more information.