Skip to content Skip to sidebar Skip to footer

How Do I Differentiate Between Different Level Of Users In Firebaseauth

I have two different types of users Teachers and Students . I use Firebase Auth with Email and password to Authenticate them and store them in the Firebase Real time database . My

Solution 1:

You got 2 type of users. So first of all, you can make only one firebase structure for both user and just add a boolean variable TEACHER that indicates if a user is a teacher or a student.

But what I usually do is to seperate the users in two different firebase structures meaning that you should create a firebase path teacher/user_id and an another student/user_id which will give you flexibility with retreiving data and display the data in different UI.

Post a Comment for "How Do I Differentiate Between Different Level Of Users In Firebaseauth"