0

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.

Menard
  • 11
  • Firebase Authentication doesn't have any type of user rules built-in, but you can build them on top of it. See for example: https://stackoverflow.com/q/47801936/209103, https://stackoverflow.com/q/55848701/209103, https://stackoverflow.com/a/36458275/209103 and many more from https://www.google.com/search?q=firebase+authetication+types+of+users – Frank van Puffelen Mar 27 '23 at 13:52

0 Answers0