Skip to content

fix: AuthInterceptor refresh retry 조건 URL 오타 수정#543

Open
ryanproback wants to merge 1 commit intodevelopfrom
fix/auth-interceptor-typos
Open

fix: AuthInterceptor refresh retry 조건 URL 오타 수정#543
ryanproback wants to merge 1 commit intodevelopfrom
fix/auth-interceptor-typos

Conversation

@ryanproback
Copy link

Summary

  • AuthInterceptor의 retry 메서드에서 refresh 토큰 재발급 요청의 401 응답을 감지하는 URL 경로가 오타(/refeshToken)로 인해 실제 서버 API 경로(/login/refresh)와 불일치하여 조건이 항상 false였던 버그 수정
  • 주석 오타 수정 (statusCdoestatusCode)
  • 불필요한 이중 공백 제거

Impact

기존에는 refresh 토큰 재발급 요청이 401을 반환해도 재시도 중단 조건이 작동하지 않아, 무한 재시도가 발생할 수 있었습니다.

Test plan

  • 로그인 후 access token 만료 시 정상적으로 refresh되는지 확인
  • refresh token도 만료된 경우 재시도 없이 로그아웃 처리되는지 확인

🤖 Generated with Claude Code

- `/refeshToken` → `/login/refresh`로 수정하여 실제 서버 API 경로와 일치시킴
- 기존에는 오타로 인해 조건이 항상 false였으므로 refresh 요청 401 시 무한 재시도 가능성 있었음
- 주석 오타 수정 (statusCdoe → statusCode)
- 불필요한 이중 공백 제거

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant