Zel*_*elf 6 dart firebase firebase-authentication flutter flutter-dependencies
在浏览器中打开机器人验证之前,会记录以下内容:“SafetyNet 证明基本完整性失败”。
此应用程序未发布到 Google Play,只是在模拟器和物理 Android 设备上进行测试。
验证码返回后,codeSent返回,其他verifyPhoneNumber()参数工作正常。
await FirebaseAuth.instance.verifyPhoneNumber(
phoneNumber: '$_countryCode$_phoneNumber',
verificationCompleted:(PhoneAuthCredential credential) {
print('verificationCompleted');
},
verificationFailed: (FirebaseAuthException e) {
print('verificationFailed');
},
codeSent: (String verificationId, int resendToken) {
print('codeSent');
},
codeAutoRetrievalTimeout: (String verificationId) {
print('codeAutoRetrievalTimeout');
},
);
Run Code Online (Sandbox Code Playgroud)
[
自上次使用以来,Firebase Phone Auth 已更新。
文档指出:
reCAPTCHA 验证:如果无法使用 SafetyNet,例如当用户没有 Google Play 服务支持时,或者在模拟器上测试您的应用时,Firebase 身份验证将使用 reCAPTCHA 验证来完成手机登录流程。
在没有看到 reCAPTCHA 之前,我很惊讶地看到了它,所以我认为我在某个地方设置了不正确的地方。
这是一个很好的安全功能,并且可以与 Firebase Phone Auth 无缝协作。
| 归档时间: |
|
| 查看次数: |
4221 次 |
| 最近记录: |