javascript firebase.auth().signInWithEmailAndPassword not be able to get success event
<p>I am working with <code>java-script</code> <code>fire-base</code> in my app.</p>

<p>I am able to <code>createUserWithEmailAndPassword</code> successfully in app. Also it is showing that data inside <code>Fire-base Console</code>.</p>

<p>Here is snippet.</p>

<pre><code>firebase.auth().createUserWithEmailAndPassword("abc@gmail.com", "*******").catch(function(error) {
      // Handle Errors here.
      var errorCode = error.code;
      var errorMessage = error.message;
      console.log("Eroor Msg"  + errorMessage);

      // ...
    });
</code></pre>

<p>Then I have gone through <code>firebase.auth().signInWithEmailAndPassword</code>. </p>

<p>With above method I am not be able to get any success event or message to <code>log</code>. Even it is not throwing any <code>error</code>.</p>

<p>Here is snippet.</p>

<pre><code>firebase.auth().signInWithEmailAndPassword("abc@gmail.com", "*****")
        .catch(function(error) {
      // Handle Errors here.
      var errorCode = error.code;
      var errorMessage = error.message;
      if (errorCode === 'auth/wrong-password') {
        alert('Wrong password.');
      } else {
        alert(errorMessage);
      }
      console.log(error);
    });
</code></pre>

<p>My question is how to get success event in this method <code>signInWithEmailAndPassword</code> ?</p>

<p>Any help will be greatly appreciated.</p>