1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

storage for org billing & signup

This commit is contained in:
Kyle Spearrin
2017-07-11 10:24:46 -04:00
parent 25536e10ef
commit ea4d772dda
10 changed files with 127 additions and 14 deletions

View File

@@ -217,6 +217,15 @@ angular
});
};
_service.updateProfilePremium = function (isPremium) {
return _service.getUserProfile().then(function (profile) {
if (profile) {
profile.premium = isPremium;
_userProfile = profile;
}
});
};
_service.isAuthenticated = function () {
return tokenService.getToken() !== null;
};