title: Cannot find a user in the dashboard though my anonymous account successes to login
body: <p>I implemented the authentication by an anonymous account in Firebase Authentication with Flutter.</p>
  <p>The signup/login successes, has no errors, and everything works.<br />
  However, the dashboard doesn't have a user as below.<br />
  May I know the reason?</p>
  <p><a href="https://i.stack.imgur.com/WfXWn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WfXWn.png" alt="enter image description here" /></a></p>
  <h2>My code</h2>
  <h3>main.dart</h3>
  <pre><code>void main() async {
    WidgetsFlutterBinding.ensureInitialized();
  
    await Firebase.initializeApp(
      options: DefaultFirebaseOptions.currentPlatform,
    );
  
    runApp(MyApp());
  }
  
  class MyApp extends StatelessWidget {...}
  
  class MyHomePage extends StatefulWidget {...}
  
  class _MyHomePageState extends State&lt;MyHomePage&gt; {
  
    @override
    void initState() {
      super.initState();
    }
  
    void dispose() {
      super.dispose();
      print(&quot;dispose&quot;);
    }
  
    @override
    Widget build(BuildContext context) {
      return ChangeNotifierProvider&lt;TimerProvider&gt;(
          create: (context) =&gt; TimerProvider()..init(),
          child: MainPage()
      );
    }
  }
  
  class MainPage extends StatefulWidget {...}
  
  class _MainPageState extends State&lt;MainPage&gt; {...}
  </code></pre>
  <h3>providers.dart</h3>
  <pre><code>class TimerProvider with ChangeNotifier {
    String? uid;
  
    final FirebaseAuth _firebaseAuth = FirebaseAuth.instance;
  
    Future init() async {
      try {
        await signupUser();
      } catch(err){
        print('init error: ${err}');
      }
    }
  
    Future signupUser() async {
      _firebaseAuth.signInAnonymously();
      uid = _firebaseAuth.currentUser?.uid;
      notifyListeners();
    }
    
    ...
  }
  </code></pre>