[Artist] Spotify AccessToken 자동 재발급 로직 추가#291
Merged
Merged
Conversation
⭐ JaCoCo CoverageLine Coverage: 7.11% 📄 Coverage DetailsOverall Line Coverage: 7.11% (514 covered / 7231 lines) Package Summary (lowest first)
Lowest Covered Classes (Top 20)
Changed Classes (from this PR)
🔗 Full HTML report: See artifact jacoco-full-html on this run → https://github.com/prgrms-web-devcourse-final-project/WEB7_9_codecrete_BE/actions/runs/20734680429 |
Creamcheesepie
approved these changes
Jan 6, 2026
Creamcheesepie
left a comment
Collaborator
There was a problem hiding this comment.
토큰 재발급까지.. 수고하셨습니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 관련 이슈
🚀 PR 개요
Spotify AccessToken은 약 1시간의 유효 시간을 가지며, 만료 시 모든 Spotify API 호출에서 401 Unauthorized 오류가 발생합니다.
이를 해결하기 위해 AccessToken을 중앙에서 관리하도록 개선하고, 토큰 만료 또는 401 응답 발생 시 자동으로 토큰을 재발급한 뒤 Spotify API 요청을 1회 재시도하는 로직을 추가했습니다.
📌 변경 사항
🧪 테스트 방법
테스트 코드를 직접 작성하여 테스트하였습니다.
📸 스크린샷 (선택)