feat: force refresh on failed auth when logged in
This commit is contained in:
parent
ee1116011f
commit
3c31ff8f79
1 changed files with 3 additions and 1 deletions
|
|
@ -57,7 +57,9 @@ api.interceptors.response.use(
|
||||||
persistent: true,
|
persistent: true,
|
||||||
enablei18n: true,
|
enablei18n: true,
|
||||||
message: `dialog.backend.${parseError(err.response.status, err.response.data)}`,
|
message: `dialog.backend.${parseError(err.response.status, err.response.data)}`,
|
||||||
action: () => {},
|
action: () => {
|
||||||
|
if (err.response.status === 401) window.location.reload();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue