mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-07 21:10:55 +08:00
handle null condition
This commit is contained in:
parent
f03c22cc07
commit
df94d81d07
@ -233,7 +233,9 @@ angular
|
||||
_service.refreshAccessToken = function () {
|
||||
var refreshToken = tokenService.getRefreshToken();
|
||||
if (!refreshToken) {
|
||||
return null;
|
||||
return $q(function (resolve, reject) {
|
||||
resolve(null);
|
||||
});
|
||||
}
|
||||
|
||||
return apiService.identity.token({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user