Skip to content

Conversation

@sookyeonghwang
Copy link
Member

작업 내용

  • 메인페이지 SVG 디자인 변경으로 수정
  • 로그인/회원가입 세션 적용으로 인한 로컬스토리지 로직 제거
  • useLocalStorage 훅 제거
  • 주석 제거

참고 이미지(선택)

X

어떤 점을 리뷰 받고 싶으신가요?

없습니다

@sookyeonghwang sookyeonghwang added ✨ Feature 기능 개발 🔨 Refactor 리팩토링 labels Jan 2, 2023
@sookyeonghwang sookyeonghwang self-assigned this Jan 2, 2023
@vercel
Copy link

vercel bot commented Jan 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
recordit ✅ Ready (Inspect) Visit Preview Jan 2, 2023 at 7:32AM (UTC)

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for recorditdev ready!

Name Link
🔨 Latest commit 3f7e4ae
🔍 Latest deploy log https://app.netlify.com/sites/recorditdev/deploys/63b2886d290f8e0008dbc0f7
😎 Deploy Preview https://deploy-preview-52--recorditdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@Seongtaek-H Seongtaek-H left a 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 헤더에 추가해줄 필요는 없는건가요?

@sookyeonghwang
Copy link
Member Author

로그인이 되고 나면 브라우저 헤더 쿠키에 세션 ID가 자동으로 저장되는건가요? 이후에 보내는 http request에도 쿠키에 세션 id가 포함되는지 궁금합니다. 쿠키에 있는 세션 ID를 가져와서 axios 헤더에 추가해줄 필요는 없는건가요?

네네 쿠키에 자동으로 저장됩니다. 로직 성공 후 확인해봐야 되겠지만 이후에 보내는 요청에는 헤더에 세션ID가 자동으로 저장되어 보내지는 것으로 알고있습니다

Copy link
Contributor

@endmoseung endmoseung left a 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]

Copy link
Contributor

Choose a reason for hiding this comment

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

이런 401도 상수로 에러명 정해서 하는건 어떨까용 ? 개인적 의견입니당 이유는 어떤 에러인지 알 수 있을거같아서용

Copy link
Member Author

Choose a reason for hiding this comment

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

넵 상수로 빼겠습니다

})
return
}

Copy link
Contributor

Choose a reason for hiding this comment

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

라우팅으로 데이터 보내주려고 state사용하신거죵

Copy link
Member Author

Choose a reason for hiding this comment

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

넹 그렇습니당

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 개발 🔨 Refactor 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants