firebase - 如何在本机反应中使用 Invisible reCAPTCHA
问题描述
我已经在我的 react native 应用程序中实现了 firebase phone auth,但自动验证几乎需要 20 秒,这不是一个好方法。firebase docs 中有一种叫做 invisible recaptcha 的东西来绕过它。但文档不清楚如何实现它。请指导我。这是我的功能
async function userLogin() {
const confirmation = await auth().signInWithPhoneNumber(number);
setConfirm(confirmation);
if (modalVisible == false) {
setModalVisible(true);
}
}
解决方案
推荐阅读
- excel - 如何在某行中引用最后使用的列并在其中粘贴某个值
- python - 具有多个具有相同列名的列的数据框,如何只保留第一个并删除其余的?
- django - 我无法建立发表评论部分。我在数据库中创建的条目在前端不可见
- sql-server - 使用逗号 SQL 分隔查询中的值
- javascript - package.json 脚本中的命令链抛出和错误
- office-ui-fabric-react - 有没有办法使用 React FluentUI (@fluentui/react) 在导航元素中添加输入字段?
- asynchronous - Dart - 区分同步和异步 void 回调
- java - 使用 Java SDK 更改 SMS 读取状态
- java - 无法删除或更新父行:java jdbc 中的外键约束失败
- php - Magento 2 checkout_onepage_controller_success_action 事件未触发