I have this web built with javascript, I'm wondering how could I connect the auth and firebase database to authenticate the user. Example: Auth user have a type of admin (type: "admin") in his database and will so get authenticated in Admin menu however if the type wasn't "admin" it will not authenticate the user to that menu. How could I do that? pls help.
I'm trying to construct the authchecker of firebase with database but couldn't get the solution.