From df94d81d072498e91e4dcae0ce7df94afc8df991 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 25 Oct 2017 12:38:55 -0400 Subject: [PATCH] handle null condition --- src/app/services/authService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/services/authService.js b/src/app/services/authService.js index 923f31c423..91b3ec245e 100644 --- a/src/app/services/authService.js +++ b/src/app/services/authService.js @@ -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({