如何在react-native-firebase中禁用Recaptcha? [英] How to disable recaptcha in react-native-firebase?

查看:60
本文介绍了如何在react-native-firebase中禁用Recaptcha?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我已经更新了 @ react-native-firebase/auth ,现在在更新的版本中添加了 Recaptcha验证程序.

Recently I have updated @react-native-firebase/auth, and now there is Recaptcha verifier added to the updated version.

但是我不想要,即使我没有配置任何 Recaptcha ,但是在 react-native 中使用电话号码签名时,它会自动打开,这不是很好的体验.

But I dont want, even I didnt configure any Recaptcha but it is automatically opens while signing with phone number in react-native and this is not a good experience.

如何禁用它,这可能吗?

推荐答案

要在Firebase身份验证中禁用reCaptcha,我们必须启用SafetyNet

To disable reCaptcha in firebase auth, we have to enable SafetyNet

启用SafetyNet有两个步骤:

There are two steps to enable SafetyNet :

首先,在Firebase控制台的项目设置中添加SHA-256密钥然后在Google云中启用Google电话验证

first, add SHA-256 key in project settings in firebase console then enable google phone verification in the google cloud

要启用Android手机验证,请执行以下步骤

To enable Android phone verification follow the below steps

goto https://console.cloud.google.com/

转到API&服务

go to APIs & Services

转到图书馆

搜索转到Android设备验证

search go Android Device Verification

只需启用

为此,您可以查看Firebase电话身份验证的官方文档

for this, you can check out the official doc of firebase phone authentication

https://firebase.google.com/docs/auth/android/phone-auth

这篇关于如何在react-native-firebase中禁用Recaptcha?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆