logout on token error only if its a 400
This commit is contained in:
parent
dc62c24aad
commit
a9be800f9e
|
@ -324,7 +324,7 @@ function initApiService() {
|
||||||
// Helpers
|
// Helpers
|
||||||
|
|
||||||
function handleError(errorCallback, jqXHR, tokenError, self) {
|
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) {
|
if (self && self.logoutCallback) {
|
||||||
self.logoutCallback(true, function () { })
|
self.logoutCallback(true, function () { })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue