title: AngularFire2 4.0.0: Login with Email & Password
body: <p>Today I updated to AngularFire2 version 4. I'm struggling with the email and password login. Before I was using the following:</p>
  
  <pre><code>login() {
      this.af.auth.login({
          email: this.email,
          password: this.password,
      },
      {
          provider: AuthProviders.Password,
          method: AuthMethods.Password,
      }).catch(function(error) {
          // Error
      })
  }
  </code></pre>
  
  <p>It seems that login is not a method of the new <code>Auth</code>. It seems like the replacement is <code>singInWithEmailAndPassword()</code>. I've tried this:</p>
  
  <pre><code>login() {
      this.afAuth.auth.signInWithEmailAndPassword({
          email: this.email,
          password: this.password,
      },
      {
          provider: AuthProviders.Password,
          method: AuthMethods.Password,
      }).catch(function(error) {
          // Error
      })
  }
  </code></pre>
  
  <p>It doesn't match the call signature obviously, which is:</p>
  
  <pre><code>signInWithEmailAndPassword(email: string, password: string): firebase.Promise&lt;any&gt;
  </code></pre>
  
  <p>I'm not sure how I should do this.</p>