-
Notifications
You must be signed in to change notification settings - Fork 0
[FE=75] feat: 로그인/회원가입 세션 적용으로 인한 로컬스토리지 로직 제거 #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for recorditdev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Seongtaek-H
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
로그인이 되고 나면 브라우저 헤더 쿠키에 세션 ID가 자동으로 저장되는건가요?
이후에 보내는 http request에도 쿠키에 세션 id가 포함되는지 궁금합니다.
쿠키에 있는 세션 ID를 가져와서 axios 헤더에 추가해줄 필요는 없는건가요?
네네 쿠키에 자동으로 저장됩니다. 로직 성공 후 확인해봐야 되겠지만 이후에 보내는 요청에는 헤더에 세션ID가 자동으로 저장되어 보내지는 것으로 알고있습니다 |
endmoseung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다~
| if (error.response?.status === 401) { | ||
| const { data } = error.response as AxiosResponse | ||
| const loginType = error.response?.config.url?.split('/')[4] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런 401도 상수로 에러명 정해서 하는건 어떨까용 ? 개인적 의견입니당 이유는 어떤 에러인지 알 수 있을거같아서용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 상수로 빼겠습니다
| }) | ||
| return | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
라우팅으로 데이터 보내주려고 state사용하신거죵
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넹 그렇습니당
작업 내용
참고 이미지(선택)
X
어떤 점을 리뷰 받고 싶으신가요?
없습니다