mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
clear root scope vault data on logout
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
angular
|
||||
.module('bit.services')
|
||||
|
||||
.factory('authService', function (cryptoService, apiService, tokenService, $q, jwtHelper) {
|
||||
.factory('authService', function (cryptoService, apiService, tokenService, $q, jwtHelper, $rootScope) {
|
||||
var _service = {},
|
||||
_userProfile = null;
|
||||
|
||||
@@ -74,6 +74,7 @@ angular
|
||||
tokenService.clearToken();
|
||||
tokenService.clearRefreshToken();
|
||||
cryptoService.clearKeys();
|
||||
$rootScope.vaultFolders = $rootScope.vaultLogins = null;
|
||||
_userProfile = null;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user