Skip to content

Auth crash when checking if user is Email-Verified #619

@Tommyten

Description

@Tommyten

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions