angularjs - Firebase logout permission error -


when trying logout out of firebase unauth() error saying

error: permission_denied: client doesn't have permission access desired data.

this controller:

 .controller('statuscontroller', [ '$scope', '$state', '$rootscope', '$firebase', '$firebaseobject', 'firebase_url', 'authentication', function($scope , $state, $rootscope, $firebase, $firebaseobject, firebase_url, authentication) {       var ref = new firebase(firebase_url);         $scope.logout = function(){            $state.go('login');            authentication.logout();       };   }])   .factory('authentication' , ['$firebase' , 'firebase_url', '$q' , function( $firebase , firebase_url, $q, $scope){      // other code above here     var ref = new firebase(firebase_url);      logout: function(){         // $scope.destroy();             window.localstorage.removeitem("firebase:session::outfitpictest");              return ref.unauth();          } //logout      } // object       return myobject;   }]); 


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -