Skip to content

Conversation

@hisonghy
Copy link
Contributor

@hisonghy hisonghy commented Oct 17, 2025

📌 작업 내용 및 특이사항

✅ 리프레시 쿠키 만료일 문제 해결

  • 리프레시 토큰 저장을 저장할 경우 Redis TTL이 7일로 설정되지만 리프레시 쿠키의 경우 10분으로 설정되는 문제를 발견했습니다.
  • 기존에는 쿠키의 Max-AgeRedis TTL과 동일하게 milliseconds로 설정했지만, 쿠키의 Max-Age는 HTTP 표준(RFC 6265)에 따라 초 단위로 정의되고, 브라우저는 초 단위로만 쿠키를 처리한다고 합니다.
    이를 반영해 Duration.ofMillis() 대신 Duration.ofSeconds()를 사용해 설정값(초 단위)을 그대로 전달하도록 수정했습니다.

🌱 관련 이슈


🔍 참고사항(선택)


📚 기타(선택)

* refactor: AuthCookieHelper.setRefreshTokenCookie 리프레시 쿠키 만료시간을 milliseconds -> seconds로 수정
@hisonghy hisonghy self-assigned this Oct 17, 2025
@hisonghy hisonghy added the 🐛bug 버그 발견 및 수정/해결 label Oct 17, 2025
Copy link
Contributor

@chaiminwoo0223 chaiminwoo0223 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다. 머지 부탁드려요!

@hisonghy hisonghy merged commit 25d513c into develop Oct 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛bug 버그 발견 및 수정/해결

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛️[BUG]: 리프레시 쿠키 만료일 버그 해결

3 participants