title: Firebase: how to check if user is logged in?
body: <p>A new bee to Firebase, I am trying out the Firebase Authentication and trying to check if user is logged-in.<br />
  code:</p>
  <pre><code>null != mAuth.getCurrentUser();
  </code></pre>
  <p>And this returns <code>true</code> though I am not logged in but I have enabled <em>annonymous login</em> and I thought that could be the issue but when I check
  <code>mAuth.getCurrentUser().isAnonymous()</code> I am getting <code>false</code>.</p>
  <p>Inspecting <code>mAuth.getCurrentUser()</code> on the IDE shows this:  <a href="https://i.stack.imgur.com/dpHbY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dpHbY.png" alt="enter image description here" /></a></p>
  <p>Any directions here?</p>