I would like to know the right way to use the onAuthStateChanges in Flutter web.
The flow of my should be the following:
if the user is logged in, then: