handle null condition

This commit is contained in:
Kyle Spearrin 2017-10-25 12:38:55 -04:00
parent f03c22cc07
commit df94d81d07
1 changed files with 3 additions and 1 deletions

View File

@ -233,7 +233,9 @@ angular
_service.refreshAccessToken = function () { _service.refreshAccessToken = function () {
var refreshToken = tokenService.getRefreshToken(); var refreshToken = tokenService.getRefreshToken();
if (!refreshToken) { if (!refreshToken) {
return null; return $q(function (resolve, reject) {
resolve(null);
});
} }
return apiService.identity.token({ return apiService.identity.token({