전역데이터 새로고침시 #148
Hyevvy
started this conversation in
03.Technical
전역데이터 새로고침시
#148
Replies: 1 comment
-
흑흑 next 라서 ssr에서 로컬스토리지를 못 읽는 이슈가 있어서 ... 쿠키로 구현하게 되었습니다... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
새로고침할 때마다 token을 통해서 userId를 다시 받아온다.
만료시간 체크하는 부분에 있어서는 axios request interceptor를 통해서 프론트단에서 만료되었는지 한 번 검증 후 만료되었다면 accessToken 과 responseToken을 보내어 새로 accessToken을 발급받는다.
-> 이 부분에 대해서 api 추가가 필요함
Beta Was this translation helpful? Give feedback.
All reactions