Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$scope.logOut = function logOut() {
delete localStorage['dropbox.oauth'];
$rootScope.uid = null;
$rootScope.isAuthenticated = false;
$scope.files = [];
$location.path('/').replace();
};