Skip to content

Firebase v9 - onAuthStateChanged randomly called with incorrect emailVerified using 'firebase/compat/auth' #5430

Closed
@VincentCtr

Description

@VincentCtr

Hello,

We recently updated firebase to firebase 9 and we have some issues with onAuthStateChanged callback. We are still using compat libraries for now.

Sometime onAuthStateChanged is triggered for a connected user with incorrect information for emailVerified property/

A simple way to reproduce the bug is to log in and then log user.emailVerified when onAuthStateChanged is updated.

firebaseAuth.onAuthStateChanged((user)=>{console.log(user.emailVerified)})

You will find out that this will log "false" for a verified user after a few minutes/hours. This issue seems to happen more frequently when I have connexion stability issues. I could not find a way to reproduce it without waiting...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close