We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49b3db7 commit 51bdc50Copy full SHA for 51bdc50
โsrc/utils/axios.tsโ
@@ -49,7 +49,9 @@ const setInterceptors = (instance: AxiosInstance) => {
49
} else if (error.response) {
50
switch (error.response.status) {
51
case 401:
52
- if (error.response.data === 'AUTH_003') {
+ if (error.response.data === 'AUTH_016') {
53
+ setError('์ผ์นํ๋ ์ ๋ณด๊ฐ ์์ต๋๋ค', '์์ด๋์ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ํ์ธํด์ฃผ์ธ์')
54
+ } else if (error.response.data === 'AUTH_003') {
55
Cookies.remove('refreshToken')
56
setError('์ ํจํ์ง ์์ ํ ํฐ์ ๋๋ค', '๋ค์ ๋ก๊ทธ์ธ ํด์ฃผ์ธ์', redirectToLogin)
57
} else if (error.response.data === 'AUTH_015') {
0 commit comments