Closed sunwoo0706 closed 2 years ago
로그아웃기능을 구현하기 위해선 sideBar 에서 로그인 여부를 확인할 수 있어야 한다. 이를 위해 처음에는 HRSESSION 쿠키를 가져와 그 여부로 상태관리를 하려 하였지만 http only 속성이 적용된 쿠키는 javascript 에서 접근이 불가하기 때문에 서버와 상의 결과 로그인 완료시 is_login 이라는 쿼리 파람을 같이 보내어 리다이렉트 시켜 구현하기로 결정하였다.
sideBar
HRSESSION
http only
javascript
is_login
관련 서버 PR : https://github.com/themoment-team/HiRecruit-server/pull/157
setSigned
SignUpAnchor
The latest updates on your projects. Learn more about Vercel for Git ↗︎
개요
로그아웃기능을 구현하기 위해선
sideBar
에서 로그인 여부를 확인할 수 있어야 한다. 이를 위해 처음에는HRSESSION
쿠키를 가져와 그 여부로 상태관리를 하려 하였지만http only
속성이 적용된 쿠키는javascript
에서 접근이 불가하기 때문에 서버와 상의 결과 로그인 완료시is_login
이라는 쿼리 파람을 같이 보내어 리다이렉트 시켜 구현하기로 결정하였다.작업 내용
is_login
이 적용되어있는 페이지로 접근시setSigned
SignUpAnchor
내부 텍스트를 변환setSigned
SignUpAnchor
내부 텍스트를 변환