From a9be800f9ec359e08f2e79c74706eb8792b7e0aa Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 10 Feb 2017 19:21:18 -0500 Subject: [PATCH] logout on token error only if its a 400 --- src/services/apiService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/apiService.js b/src/services/apiService.js index 34ff59e67d..bb33a94144 100644 --- a/src/services/apiService.js +++ b/src/services/apiService.js @@ -324,7 +324,7 @@ function initApiService() { // Helpers function handleError(errorCallback, jqXHR, tokenError, self) { - if (tokenError || jqXHR.status === 401 || jqXHR.status === 403) { + if ((tokenError && jqXHR.status === 400) || jqXHR.status === 401 || jqXHR.status === 403) { if (self && self.logoutCallback) { self.logoutCallback(true, function () { }) }