aboutsummaryrefslogtreecommitdiff
path: root/src/requests.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/requests.ts')
-rw-r--r--src/requests.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/requests.ts b/src/requests.ts
index e1f82b4..8ec8e3d 100644
--- a/src/requests.ts
+++ b/src/requests.ts
@@ -14,7 +14,7 @@ requests.interceptors.request.use(config => {
requests.interceptors.response.use(response => response, error => {
if (error.message === 'Request failed with status code 401' && localStorage.getItem('token')) {
- localStorage.setItem('shouldClear', 'true');
+ localStorage.removeItem('remember');
window.location.reload();
}
return Promise.reject(error);