Skip to content

Conversation

@venise5224
Copy link
Collaborator

@venise5224 venise5224 commented Nov 12, 2024

이슈

쿠키가 만료되어도 로그인 상태가 유지되는 것처럼 보임
-> 쿠키와 로그인 상태가 따로 관리되기 때문에 발생됨
-> 컴포넌트가 마운트되면 쿠키 유무를 확인 필요

작업 내용

  1. 쿠키가 존재하는지 확인하기 위해 프록시 서버 구현 ('/api/auth/check')
  2. AuthStore 변경 : checkLogin 액션 함수 추가 (쿠키 유무에 따라 user, isLoggedIn 재설정)
  3. 헤더 적용 : 헤더 메뉴 컴포넌트 마운트되면 checkLogin 실행

Copy link
Collaborator

@99minji 99minji left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Copy link
Collaborator

@hongggyelim hongggyelim left a comment

Choose a reason for hiding this comment

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

잘 해결 됐네요! 고생하셨습니다

@venise5224 venise5224 merged commit 16935a2 into develop Nov 13, 2024
1 check passed
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.

4 participants