console the message instead of toast when failing to refresh token
This commit is contained in:
parent
e6698287bc
commit
f6abf2bc38
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user