我已将select fh.name
from FeeHeading fh
join fh.feeGroup fg
where fg.isActive = 1
and fg.isOptional = 0
and fh.isActive = 1
and fg.id = 78
手机身份验证添加到我的android项目中。首先一切都很好。一段时间后,Set
中的短信代码为空。谢谢!!
firebase
答案 0 :(得分:2)
这是即时验证。在official docs中,它说:
即时验证:在某些情况下,无需发送或输入验证码即可立即验证电话号码。
此外,如果你看一下开源的FirebaseUI for Android,on this line of code,它表明验证有可能成功,而短信代码不存在。这种情况表示即时验证。因此,您可以安全地继续使用此凭据对用户进行签名。
答案 1 :(得分:0)
获取自动检索的SMS验证码(如果适用)。使用SMS验证时,如果自动检索成功,则将首先通过onCodeSent(String,PhoneAuthProvider.ForceResendingToken)调用您,然后通过onVerificationCompleted(PhoneAuthCredential)使用包含非空SMS代码的PhoneAuthCredential进行调用。如果Firebase使用另一种方法来验证电话号码并通过onVerificationCompleted(PhoneAuthCredential)触发回调,则SMS代码可以为空