title: Firebase: keep data local until login
body: <p>Is there a way to keep all the data local, and sync it online with firebase when the user decide to login in to the app?</p>
  
  <p>I know about the offline capabilities of firebase, but I don't think they are meant for this use case.</p>