title: Firebase RememberMe functionality
body: <p>My webapp allows different users to login in different tabs/browsers on the same machine with different credentials (using <code>signInWithEmailAndPassword</code>). I achieve this by calling <code>firebase.initializeApp(config, 'appName'+new Date().getTime())</code> for each login</p>
  
  <p>When the user closes the tab or reloads (in <code>window.onbeforeunload</code>) I call <code>.auth().signOut()</code> to log him out.</p>
  
  <p>I now want to add a <em>RemeberMe</em> functionality to my app page, that is a tickbox that if (and only if) ticked, will allow following logins from the same machine and username without giving the password even if the machine was for example restarted in the meantime.</p>
  
  <p>How can that be achieved ?</p>
  
  <p>what I am thinking about is (when remember me is on) to generate a token on the client stored in a cookie and maintain a table on the db which links tokens to passwords, there are two problems with this, first of all the password is saved as is on the db which is bad and second the password needs to be sent back to the client which is also bad.</p>
  
  <p>any better options ?</p>