title: How do I do anonymous Firebase logins which allow browser refresh?
body: <p>I'm doing a javascript single-page app which allows people to log in, either via twitter or (for some use cases) anonymously.</p>
  
  <p>A very important thing to figure out was how to let them reload the page -- this shouldn't force them to log back in!</p>
  
  <p>I figured this out pretty quickly for the twitter login, and so it uses cookie-stored information to log back in (specifically, the user_id, oauth_token and oauth_token_secret).</p>
  
  <p>However, I can't seem to make this work with the anonymous login facility.</p>
  
  <p>I tried:</p>
  
  <pre><code>auth.login("anonymous", {
    user_id: @get("userId"),
    firebase_auth_token: @get("firebaseAuthToken")
  });
  </code></pre>
  
  <p>but it doesn't work... I get a new anonymous user ID.  I want to keep the same one for the duration of the user's browser session.</p>
  
  <p>And yeah, I tried both <code>user_id</code> and <code>id</code>, <code>firebaseAuthToken</code> and <code>firebase_auth_token</code>.</p>
  
  <p>Thanks!</p>