title: Can't use signInWithEmailAndPassword in flutter app when offline
body: <p>I'm attempting to use Firebase Auth in a Flutter app that is also using Cloud Firestore. The problem I'm having is what to do when offline.</p>
  
  <p>I journal the username and password and attempt to login using the following code:</p>
  
  <pre><code>    _user = await _auth.signInWithEmailAndPassword(email: account, password: myPassword).catchError((error) {
    print(error);
  });
  
  await _user.getIdToken().catchError((error) {
    // The error source may be that they are not currently connected to the internet
    print(error);
  });
  final FirebaseUser currentUser = await _auth.currentUser();
  </code></pre>
  
  <p>The problem is that signInWithEmailAndPassword is failing when I'm offline. I need the FirebaseUser object to access Cloud Firestore. I've read about authentication state persistence but this doesn't seem to be available for Flutter.</p>
  
  <p>I know this has to work and I'm just too new to understand how to use Firebase Auth with Cloud Firestore in an offline setting. What am I missing?</p>