Check for new user
<p>I want to know when a user logs in via a provider(twitter,facebook,etc...) If he is a new user. If so then add his data to my firebase.. Currently i have read this:</p>

<p><a href="https://www.firebase.com/docs/web/guide/user-auth.html" rel="nofollow">https://www.firebase.com/docs/web/guide/user-auth.html</a></p>

<p>And it tells me to do:</p>

<pre><code>var isNewUser = true;
</code></pre>

<p>Then check by saying </p>

<pre><code>if(authData &amp;&amp; isNewUser){
//This is a new user
}
</code></pre>

<p>But it dosent work... I logged in with the same account but it tells me its a new user...</p>