title: How to log in whilst offline in firestore
body: <p>I have enabledPersistence() as indicated in the documentation on my app.ts.</p>
  
  <pre><code>import { AngularFirestoreModule } from '@angular/fire/firestore';
   imports: [ AngularFirestoreModule.enablePersistence()]
  </code></pre>
  
  <p>Once i login and disconnect my network the application works well in offline mode and it uodates when network is reconnected.</p>
  
  <p>My login function is:</p>
  
  <pre><code>  async login() {
            await this.presentLoadings();
              const { email, password } = this
              try { 
  
                const res = await this.afAuth.auth.signInWithEmailAndPassword(email , password)
  
                if(res.user) {
                  this.user.setUser({
                    email,
                    password,
                    uid: res.user.uid
                  })
                  this.router.navigate(['/tabs/dashboard'])
                }
  
              } catch(err) {
                this.presentToast(err.message);
              }
              finally
              {
                this.loading.dismiss();
              }
            }
  </code></pre>