【发布时间】:2020-11-11 03:30:44
【问题描述】:
我想删除或隐藏 google recaptcha 验证。 我的手机号码验证码和登录码
await FirebaseAuth.instance.verifyPhoneNumber(
phoneNumber: "+91${customMobileController.text.toString()}",
timeout: const Duration(seconds: 5),
verificationCompleted: verificationCompleted,
verificationFailed: verificationFailed,
codeSent: codeSent,
codeAutoRetrievalTimeout: codeAutoRetrievalTimeout);
用于登录
var authCredential = PhoneAuthProvider.getCredential(
verificationId: verificationId,
smsCode: otp,
);
await FirebaseAuth.instance
.signInWithCredential(authCredential)
.then((value) {})
.catchError((error) {});
【问题讨论】:
-
@YauhenSampir 实际上是兄弟,我解决了这个问题,它在 javascript 中,我希望它在颤振网络中
-
有什么区别?你认为 Flutter Firebase API 与 Javascript 有什么不同吗?
-
在任何 Firebase SDK 上都无法实现您想要的,无论是否 Flutter。 Firebase 使用 reCAPTCHA 来防止滥用,例如确保电话号码验证请求来自您的应用允许的域之一。 firebase.google.com/docs/auth/web/phone-auth
-
@YauhenSampir 两者的库是不同的。在颤振中,没有像 javascript 那样处理 google recaptcha 的实用程序。所以我想知道如何使用飞镖来实现它
-
@YauhenSampir 好的,这是不可能的,但我们如何才能像 google recaptcha v3 一样在 dart 代码中隐藏它
标签: firebase flutter firebase-authentication recaptcha flutter-web