In main.dart I've added this:
FirebaseAuth.instance.userChanges().listen((event) async {
debugPrint('user state changed in main');
});
The event is continuously getting triggered, with no changes to the users logged in status (I am developing for the web, not tested on devices).