尝试使用Firebase进行电话身份验证时发生FirebaseAuthInvalidUserException。 (ERROR_INVALID_USER_TOKEN)

时间:2019-08-12 13:13:41

标签: android firebase firebase-authentication

当我尝试使用测试仪电话号码(通过Firebase)对用户进行身份验证时,出现以下异常。

我尝试发送OTP时收到以下警告。

 W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzaq@1d54205

当我尝试验证凭据(验证otp)时,出现以下异常

 com.google.firebase.auth.FirebaseAuthInvalidUserException: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.
    at com.google.firebase.auth.api.internal.zzdw.zza(com.google.firebase:firebase-auth@@18.1.0:6)
    at com.google.firebase.auth.api.internal.zzez.zza(com.google.firebase:firebase-auth@@18.1.0:21)
    at com.google.firebase.auth.api.internal.zzes.zza(com.google.firebase:firebase-auth@@18.1.0:35)
    at com.google.firebase.auth.api.internal.zzeu.zza(com.google.firebase:firebase-auth@@18.1.0:74)
    at com.google.firebase.auth.api.internal.zzec.zza(com.google.firebase:firebase-auth@@18.1.0:18)
    at com.google.android.gms.internal.firebase_auth.zza.onTransact(com.google.firebase:firebase-auth@@18.1.0:13)
    at android.os.Binder.execTransact(Binder.java:704)

对于此异常,我得到以下错误代码:ERROR_INVALID_USER_TOKEN

仅在设备 Redmi Y2 中出现此问题。在其他设备上,它工作正常。我试图寻找解决方案。但我没有任何适当的解决方案。谁能帮我解决这个问题?

0 个答案:

没有答案