How do I restrict user sign ups to only certain domains in Firebase?

前端 未结 3 916
醉酒成梦
醉酒成梦 2021-01-23 21:43

I have an iOS app that I\'d like to restrict access to, making it only available to users from a specific email domain. The app requires the users to log in using their Google A

3条回答
  •  忘掉有多难
    2021-01-23 22:35

    Include the email and password sign up option and just check for domains within your app. This will be a simple string comparison test on the email address.

    Or just spin up a server to which you'll be sending the emails to for verification. This way you wouldn't have to push out new updates every time you add an extra domain. You can try and see if cloud functions would be helpful instead of spinning up a new server.

提交回复
热议问题