update logout logic
This commit is contained in:
1 parent
f22d21bb53
commit
7e23b014b6
4 files changed
+19
-14
No files matched your search
@@ -12,7 +12,7 @@ const httpClient: AxiosInstance = axios.create({
|
||||
});
|
||||
|
||||
httpClient.interceptors.request.use((config) => {
|
||||
const accessToken = store.getters.accessToken || getCookie('ACCESS_TOKEN');
|
||||
const accessToken = store.getters.accessToken;
|
||||
if (accessToken) {
|
||||
config.headers['Authorization'] = `Bearer ${accessToken}`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user