Skip to content

Commit 51bdc50

Browse files
committed
๐Ÿ› [fix] : ๊ณตํ†ต ์—๋Ÿฌ์— ๋Œ€ํ•ด์„œ setError ์ฒ˜๋ฆฌ
1 parent 49b3db7 commit 51bdc50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

โ€Žsrc/utils/axios.tsโ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ const setInterceptors = (instance: AxiosInstance) => {
4949
} else if (error.response) {
5050
switch (error.response.status) {
5151
case 401:
52-
if (error.response.data === 'AUTH_003') {
52+
if (error.response.data === 'AUTH_016') {
53+
setError('์ผ์น˜ํ•˜๋Š” ์ •๋ณด๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค', '์•„์ด๋””์™€ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ๋‹ค์‹œ ํ™•์ธํ•ด์ฃผ์„ธ์š”')
54+
} else if (error.response.data === 'AUTH_003') {
5355
Cookies.remove('refreshToken')
5456
setError('์œ ํšจํ•˜์ง€ ์•Š์€ ํ† ํฐ์ž…๋‹ˆ๋‹ค', '๋‹ค์‹œ ๋กœ๊ทธ์ธ ํ•ด์ฃผ์„ธ์š”', redirectToLogin)
5557
} else if (error.response.data === 'AUTH_015') {

0 commit comments

Comments
ย (0)