I am building an app that has different types of users that must have access to different dashboard based on who they are. Similar to student, teacher and School director. Each of them have separate dashboard they must be directed to upon authentication.
I am using firebase as my backend support. After they have been authenticated into firebase, I have them saved into their respective DB like below.
The question is because firebase sees them all as users and assign a UID to each in Authentication, what is the best way to know who is student, teacher or director when they log back in so that they can be directed to their respective dashboard.
