null check refresh promise
This commit is contained in:
parent
c3653577c6
commit
805393b4db
|
@ -49,7 +49,12 @@ angular
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshPromise = authService.refreshAccessToken().then(function (newToken) {
|
var p = authService.refreshAccessToken();
|
||||||
|
if (!p) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
refreshPromise = p.then(function (newToken) {
|
||||||
refreshPromise = null;
|
refreshPromise = null;
|
||||||
return newToken || token;
|
return newToken || token;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue