logout on token error only if its a 400

This commit is contained in:
Kyle Spearrin 2017-02-10 19:21:18 -05:00
parent dc62c24aad
commit a9be800f9e
1 changed files with 1 additions and 1 deletions

View File

@ -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 () { })
}