로그인 여부 판단 #115
KIMSEUNGGYU
announced in
Announcements
로그인 여부 판단
#115
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
로그인 여부 판단을 localstorage 로 처리하는데
후에 nextjs 에서 서버단 수행(getStaticProps, getServerSideProps 등) 할 떄 auth 관련 정보가 필요한 경우 에러가 발생할거 같습니다.
=> 해당 단에서는 localstorage 접근 불가
그래서 대부분의 사이트에서? 쿠키로 하나? 라는 생각이 들었습니다.
백엔드 분들과 이야기 하고 후에 적용하면 좋을 거 같아요!
http-only 속성으로 통신해야할 거 같아요!
Beta Was this translation helpful? Give feedback.
All reactions