- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
按照文档实现 FireBase 电话身份验证后,我遇到了几个问题。
在日志中,我可以确认代码已发送,但我的手机尚未收到:
D/PhoneAuthenticating: onCodeSent:AM5PThBss5tbYdpNW5R9Q7o8zOYeHvd7lnZ1KBlS...
W/PhoneAuthenticating: signInWithCredential:failure com.google.firebase.auth.FirebaseAuthInvalidCredentialsException: The sms code has expired. Please re-send the verification code to try again. at com.google.android.gms.internal.nf.zzK(Unknown Source) at com.google.android.gms.internal.mg.zza(Unknown Source) at com.google.android.gms.internal.oa.zzL(Unknown Source) at com.google.android.gms.internal.oc.onFailure(Unknown Source) at com.google.android.gms.internal.nj.onTransact(Unknown Source) at android.os.Binder.execTransact(Binder.java:446)
抛出此异常:
FirebaseAuthInvalidCredentialsException
代码过期在 firebase 中花费的时间超过 3599 秒。验证时间不到一分钟
最佳答案
只是为了让您知道 firebase 电话身份验证中有一个自动检索部分,它将读取短信并在后台使其无效。该自动检索的回调应该用于验证您的用户,而无需他手动输入短信。
关于android - Firebase 电话身份验证错误 : The SMS Code Has Expired,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46522726/
我是一名优秀的程序员,十分优秀!