Skip to content

Conversation

@wldnjs990
Copy link
Collaborator

@wldnjs990 wldnjs990 commented Mar 12, 2025

✅ 요약

🪄 변경사항

  • SSE의 API와 axios의 API가 독립적으로 실행되고 있어 토큰 재발급 로직(reissue)가 동시에 발생하면 리이슈가 중단되는 현상 발생
  • SSE와 axios 따로따로 reissue함수를 실행하고 있었음 => 코드 retry문을 서로 다르게 적용되어 reissue 충돌이 발생
  • zustand 전역변수로 reissue 함수를 통일해 retry를 통일하여 reissue가 중복될 일을 차단함

🖼️ 결과 화면 (선택)

💬 리뷰어에게 전할 말 (선택)

  • 화이팅

@wldnjs990 wldnjs990 linked an issue Mar 12, 2025 that may be closed by this pull request
1 task
@tifsy tifsy self-requested a review March 13, 2025 00:41
@wldnjs990 wldnjs990 changed the title refactor : api reissue 오류 수정 fix : api reissue 오류 수정 Mar 13, 2025
@wldnjs990 wldnjs990 added 🐞 Bug 버그 이슈 🔨 Refactor 리팩토링 이슈 labels Mar 13, 2025
Copy link
Collaborator

@tifsy tifsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해결하셨군용~ 수고하셨습니다!

@wldnjs990 wldnjs990 merged commit ecab9ae into develop Mar 13, 2025
@wldnjs990 wldnjs990 deleted the 151-refactor-api-reissue branch March 13, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 Bug 버그 이슈 🔨 Refactor 리팩토링 이슈

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor : api reissue 오류 수정

3 participants