We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
쿠키에 유효하지 않은 refreshToken만 남아있을 경우, 무한 루프에 빠짐
재현 방법
실패한 요청 -> refresh
const onRejected = async (error: AxiosError) => { const originalConfig = error.config; const data = error.response?.data as AuthErrorData; if (originalConfig && error.response?.status === 401 && data?.error === 'Auth-002') { try { await refreshToken(); // 여기서 에러가 나도 return soomsilClient.request({ // 무조건 요청 다시 보내니까 다시 401 -> refresh -> ... 반복인 거 같음 ...originalConfig, headers: { Authorization: `Bearer ${api.getAccessToken()}`, }, }); } catch (error) { return Promise.reject(error); } } return Promise.reject(error); };
The text was updated successfully, but these errors were encountered:
Merge branch 'develop' of https://github.com/yourssu/Soomsil-Web into…
5106b9d
… fix/#209-soomsil-response-interceptor
0449d6e
nijuy
Successfully merging a pull request may close this issue.
ISSUE ✅ : BUG
📖 Summary
쿠키에 유효하지 않은 refreshToken만 남아있을 경우, 무한 루프에 빠짐
Error Script
재현 방법
실패한 요청 -> refresh
쌍이 무한 반복)Photo
The text was updated successfully, but these errors were encountered: