firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

Auth crash when checking if user is Email-Verified

Open Tommyten opened this issue 1 year ago • 6 comments
trafficstars

When checking if a user is email verified using Firebase auth the app crashes with the following message: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FIRUser emailVerified]: unrecognized selector sent to instance 0x600002c16800'

The setup is pretty simple. With a logged in user I execute this piece of code:

Napier.e("About to crash")
Firebase.auth.currentUser?.let {
    Napier.e("Did get current User")
    val mailVerified = it.isEmailVerified
    Napier.e("Unreachable on iOS | mailVerified: $mailVerified")
}

on iOS it leads to a crash; on Android it doesn't. I didn't test any other platforms yet. This crash only came up, after upgrading gitlive firebase auth from version 1.12.0 to 2.1.0

Tommyten avatar Sep 05 '24 06:09 Tommyten