Closed
Description
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...