Bugfixing

This commit is contained in:
Michal Kváček
2023-12-10 23:11:11 +01:00
parent 9b38abd0de
commit 3216de4cb7
7 changed files with 52 additions and 33 deletions
+5 -5
View File
@@ -20,12 +20,12 @@ export default boot(({store}) => {
config.headers['Authorization'] = `Bearer ${token}`
}
if (['/refresh', '/login'].includes(config.url)) {
delete config.headers['Authorization'];
}
if (['/refresh', '/login'].includes(config.url)) {
delete config.headers['Authorization'];
}
return config;
})
return config;
})
// Response interceptor for API calls
api.interceptors.response.use(