首页 > 解决方案 > 如何在本机反应中使用 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);
    }
  }

标签: firebasereact-nativefirebase-authentication

解决方案


推荐阅读