mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
user can be authenticated when under old auth bearer token
This commit is contained in:
@@ -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() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user