Email verification using Firebase 3.0 on Android

后端 未结 4 1463
我寻月下人不归
我寻月下人不归 2020-11-30 12:34

I knew that we can verify the users email with Firebase Auth 3.0. I\'m not able to find any documentation regarding email verification on Android. I\'m able to find the same

4条回答
  •  时光取名叫无心
    2020-11-30 13:20

    An alternative suggested by the Firebase team

    One thing you could do is to add a node to your Firebase Database which contains all email addresses as children. You should make this node only publicly readable (via Firebase security rules).

    Then from within your apps, once a user signs up / signs in, you check if the email of that user is on the list, and if not, you sign them out and kick them out of your app (and as a bonus, you could even log the intruder's email address in your database, so you can later check who is trying to access your app).

    This will work for initial testing if you know the e-mail ids of the people who are gonna test your app until the e-mail verification makes its way to Android.

提交回复
热议问题