title: Permissions denied after logout
body: <p>I build an AngularJs (1.6) app with a firebase database. Problem is: when a user logs out, I get a ton of errors <code>permission_denied</code>.</p>
  
  <p>If that can be of any help:</p>
  
  <pre><code>firebase.auth().signOut().then(function() {
      $state.go('login');
  }, function(error) {});
  </code></pre>
  
  <p>Is there a way to avoid that?</p>