0

I'm working on an application that's accessible to certain users who want to be able to login using their google account. So I'm using firebase as the backend and I'm trying to find out a clean way of letting certain users login based on their email addresses.

Assuming that I'm able to sign up those users and I have them in my firebase's users table, how can I work with permissions to enable only these users to have access to the app?

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Naguib Ihab
  • 4,259
  • 7
  • 44
  • 80
  • You'll have to set up your security rule to enforce access for users that meet your criteria. You can catch that error client side and show the relevant error message. – bojeil Jun 04 '18 at 06:34
  • @bojeil any doc on how to do that? – Naguib Ihab Jun 04 '18 at 12:35
  • 1
    Here is one example: https://stackoverflow.com/questions/46030510/restrict-firebase-users-by-email – bojeil Jun 04 '18 at 17:09

0 Answers0