From f6abf2bc38710d55d141080630de2ca0b29b8200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E7=A7=8B=E6=97=AD?= Date: Thu, 2 Mar 2023 15:26:32 +0800 Subject: [PATCH] console the message instead of toast when failing to refresh token --- src/utils/axios/authAxios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/axios/authAxios.ts b/src/utils/axios/authAxios.ts index 1155fd7..16f78c1 100644 --- a/src/utils/axios/authAxios.ts +++ b/src/utils/axios/authAxios.ts @@ -43,7 +43,7 @@ const refreshToken = (() => { refreshingToken?.catch((error) => { if (error instanceof AxiosError) { Router.push('/login') - throwError(error) + console.error(error.response?.data.message) } }) return refreshingToken