How do I restrict signup to a product in Firebase

前端 未结 1 1094
[愿得一人]
[愿得一人] 2020-12-31 14:06

If I create a new product, use simple auth, there is a \"create user\" API. How do I restrict it so that only invited emails (either by the email or via a one-time key) can

相关标签:
1条回答
  • 2020-12-31 14:52

    First, I should point out that the core Firebase API uses JSON Web Tokens for auth, which you can generate yourself, so you have full control over the creation of user accounts and can restrict it however you like:

    https://www.firebase.com/docs/security/custom-login.html

    I'm guessing you're referring to our Simple Login service.

    Simple Login is a service that provides some common login options. It has no way to restrict creation of new accounts. However, you can restrict what those accounts can do with Firebase. For example, you could set your security rules up so that only user accounts in some authorized list (in Firebase) are actually able to read or write data.

    0 讨论(0)
提交回复
热议问题