How would I be able to check in real time if the user verified his email?
My flow is like this:
- User registers
- Email is sent
- User sees "Please verify your email" notification
Now I would like to:
- setInterval -> check if email is verified
- If verified show the "Email verified" notification
For this I would need a method that fetches the user data from firebase. Usually you just use the onAuthStateChanged callback to get userdata but I need to explicitly fetch current data.
How would I do that?