如何在 react-native-firebase 中禁用 recaptcha? [英] How to disable recaptcha in react-native-firebase?
问题描述
最近我更新了@react-native-firebase/auth
,现在更新版本中添加了Recaptcha verifier
.
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 auth 中禁用 reCaptcha,我们必须启用 SafetyNet
To disable reCaptcha in firebase auth, we have to enable SafetyNet
启用 SafetyNet 有两个步骤:
There are two steps to enable SafetyNet :
首先,在 firebase 控制台的项目设置中添加 SHA-256 密钥然后在谷歌云中启用谷歌手机验证
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
转到https://console.cloud.google.com/
转到 APIs &服务
go to APIs & Services
去图书馆
search go 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屋!