Is it possible to enable Firebase email authentication but disable sign in?

前端 未结 3 603
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-21 20:12

In my app, I\'m already using the Firebase authentication with Google accounts, but I\'d also like to authorize some users who have no Google account. So I\'d like to manually a

3条回答
  •  执笔经年
    2021-01-21 20:46

    I don't think this is possible who can sign in on an individual basis in Firebase Authentication.

    Typically sign in to Firebase is either open or closed for everyone. Then you allow them access to specific resources on an individual basis.

    For example, you use the Firebase Database or Cloud Firestore you could control access by having a whitelist of approved users in your security rules. See Restrict Firebase users by email

    Alternatively, you can set a custom claim on the profiles that you want to grant access, and check that in your security rules: Firebase Authentication with whitelisted email addresses

提交回复
热议问题