1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-10 01:28:36 +02:00

user can be authenticated when under old auth bearer token

This commit is contained in:
Kyle Spearrin 2017-01-23 23:51:12 -05:00
parent a9fbc92943
commit b0a7b88585

View File

@ -89,7 +89,8 @@ function initUserService() {
var self = this; var self = this;
self.tokenService.getToken(function (token) { self.tokenService.getToken(function (token) {
if (!token) { self.tokenService.getAuthBearer(function (authBearer) {
if (!token && !authBearer) {
callback(false); callback(false);
} }
else { else {
@ -98,5 +99,6 @@ function initUserService() {
}); });
} }
}); });
});
}; };
}; };