WHAT I HAVE
I am using Firebase Authentication in my app where the users can register using Email & Password. If the users have not verified their email, I disable some features until they verify their email.
I also have a button to explicitly trigger verification mail, which just calls, sendEmailVerification()
. It works perfectly and verification mail is always sent.
THE PROBLEM
The user gets the verification mails, but when he/she verifies it and comes back to the app, the isEmailVerified()
is always false. So my app still doesn't allow the user to use all functions in spite of the fact that he/she has verified their email.
But if they log out and login again, the isEmailVerified()
returns true immediately. But is it not good to log out the user and login back again.
Is it a bug in Firebase? Or am I doing something wrong?