[fix] /auth/refresh 응답에 hasSession 쿠키 재설정 추가#119
Merged
nYeonG4001 merged 1 commit intodevelopV2from Apr 12, 2026
Merged
Conversation
refresh 시 refreshToken maxAge는 갱신되지만 hasSession은 갱신되지 않아 최초 로그인 후 7일이 지나면 hasSession이 먼저 만료되고 새로고침 시 로그인이 풀리는 문제 수정
|
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.



Summary
/auth/refresh엔드포인트에서setHasSessionCookie(response)호출 추가hasSession쿠키 maxAge가refreshToken과 동일하게(7일) 갱신됨hasSession이 먼저 만료되어 새로고침 시 로그인 풀리는 문제 수정Test plan
refresh_success— 응답 Set-Cookie에hasSession=true; SameSite=Lax포함 검증refresh_success_hasSessionMaxAgeRenewed—Max-Age=604800포함 검증refresh_invalidToken_returns401— 유효하지 않은 토큰 시 401refresh_missingCookie_returns401— refreshToken 쿠키 없을 시 401./gradlew build --no-daemon)