Skip to content

Commit

Permalink
Merge pull request #211 from ssu-student-union/hotfix/session-rollback
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
dvp-tae authored Oct 10, 2024
2 parents 958d139 + f944963 commit c276ab2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/apis/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ client.interceptors.request.use(
}
);

client.interceptors.response.use(
(response) => response,
(error) => {
if (error.response && error.response.status === 401) {
alert('세션 시간이 만료되었습니다.');
localStorage.clear();
window.location.href = '/';
}
return Promise.reject(error);
}
);

export const clientAuth = <T>(config: AxiosRequestConfig): Promise<AxiosResponse<T>> => {
return client({
...config,
Expand Down

0 comments on commit c276ab2

Please sign in to comment.