Skip to content

Conversation

@sangcci
Copy link
Collaborator

@sangcci sangcci commented Mar 14, 2025

연결된 issue 🌟

구현 내용 📢

로그아웃 API

로그아웃 처리해도 RefreshToken Cookie가 사라지지 않아, 프론트에서 변수 처리해도 Cookie가 남아있어 /login/check 로직에 의해 강제 재로그인 이슈

로그아웃 API 구현으로 해결

  • Redis refreshToken 제거
  • Cookie maxAge 0 설정

domain Host name 추출 추가

기존 Origin 헤더에서만 추출

  • Referer Header에서도 추출할 수 있도록 수정

테스트 결과 🧩

정상 동작

@sangcci sangcci added ✨ feat 기능 추가 🐛 fix 수정 작업 labels Mar 14, 2025
@sangcci sangcci self-assigned this Mar 14, 2025
@sangcci sangcci merged commit f9bcb13 into develop Mar 15, 2025
2 checks passed
@sangcci sangcci deleted the feat/auth branch March 21, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feat 기능 추가 🐛 fix 수정 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

로그아웃 API 구현

2 participants