Skip to content

[fix] /auth/refresh 응답에 hasSession 쿠키 재설정 추가#119

Merged
nYeonG4001 merged 1 commit intodevelopV2from
auto/fix/refresh-hassession-cookie
Apr 12, 2026
Merged

[fix] /auth/refresh 응답에 hasSession 쿠키 재설정 추가#119
nYeonG4001 merged 1 commit intodevelopV2from
auto/fix/refresh-hassession-cookie

Conversation

@nYeonG4001
Copy link
Copy Markdown
Collaborator

Summary

  • /auth/refresh 엔드포인트에서 setHasSessionCookie(response) 호출 추가
  • refresh 성공 시 hasSession 쿠키 maxAge가 refreshToken과 동일하게(7일) 갱신됨
  • 최초 로그인 후 7일 경과 시 hasSession이 먼저 만료되어 새로고침 시 로그인 풀리는 문제 수정

Test plan

  • refresh_success — 응답 Set-Cookie에 hasSession=true; SameSite=Lax 포함 검증
  • refresh_success_hasSessionMaxAgeRenewedMax-Age=604800 포함 검증
  • refresh_invalidToken_returns401 — 유효하지 않은 토큰 시 401
  • refresh_missingCookie_returns401 — refreshToken 쿠키 없을 시 401
  • 전체 빌드 통과 (./gradlew build --no-daemon)

refresh 시 refreshToken maxAge는 갱신되지만 hasSession은 갱신되지 않아
최초 로그인 후 7일이 지나면 hasSession이 먼저 만료되고 새로고침 시
로그인이 풀리는 문제 수정
@nYeonG4001 nYeonG4001 changed the title fix: /auth/refresh 응답에 hasSession 쿠키 재설정 추가 [fix] /auth/refresh 응답에 hasSession 쿠키 재설정 추가 Apr 12, 2026
@sonarqubecloud
Copy link
Copy Markdown

@nYeonG4001 nYeonG4001 merged commit 2ab8ea4 into developV2 Apr 12, 2026
3 checks passed
@nYeonG4001 nYeonG4001 deleted the auto/fix/refresh-hassession-cookie branch April 12, 2026 02:14
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