Skip to content

Fix: home 페이지 강의 생성/조회 API 수정 #254

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

Closed
LellowMellow opened this issue Dec 11, 2023 · 0 comments · Fixed by #258
Closed

Fix: home 페이지 강의 생성/조회 API 수정 #254

LellowMellow opened this issue Dec 11, 2023 · 0 comments · Fixed by #258
Assignees
Labels
FE 프론트엔드 작업 🐞 Fix 버그 수정
Milestone

Comments

@LellowMellow
Copy link
Collaborator

LellowMellow commented Dec 11, 2023

버그 설명

API 변경에 따라 home 페이지의 강의 생성/조회 기능과 관련된 API 코드를 수정합니다. 관련하여 매번 유저의 정보를 요청하지 않도록 localStorage에 이를 저장하여 관리하는 방식으로 변경하였습니다.

추가 내용

@LellowMellow LellowMellow added 🐞 Fix 버그 수정 FE 프론트엔드 작업 labels Dec 11, 2023
@LellowMellow LellowMellow added this to the 6주차 milestone Dec 11, 2023
@LellowMellow LellowMellow self-assigned this Dec 11, 2023
LellowMellow referenced this issue in LellowMellow/web13_Boarlog Dec 11, 2023
- accessToken의 유효 여부에 따라 구분하여 정보를 localStorage에
  저장하도록 하였습니다.
LellowMellow referenced this issue in LellowMellow/web13_Boarlog Dec 11, 2023
- localStorage에 저장한 내용을 바탕으로 HeaderprofileModal에 유저 정보를
  표시하도록 하였습니다.
LellowMellow referenced this issue in LellowMellow/web13_Boarlog Dec 11, 2023
- 강의 생성 시에 accessToken을 담아 이를 바탕으로 강의를 생성하도록
  수정하였습니다.
LellowMellow referenced this issue in LellowMellow/web13_Boarlog Dec 11, 2023
- 유저 정보를 저장하는 로직을 header에서 UserAuthSection으로 변경하였습니다.
LellowMellow referenced this issue in LellowMellow/web13_Boarlog Dec 11, 2023
- 강의 생성 시에 accessToken 존재 여부를 판단할 수 있는 훅을 작성하고
  이를 활용하였습니다.
LellowMellow referenced this issue in LellowMellow/web13_Boarlog Dec 11, 2023
- guest임을 판단하여 localStorage에 정보가 없을 경우에는 guest로
  표시하도록 하였습니다.
- 불필요한 logout 버튼을 제거하였습니다.
LellowMellow referenced this issue in LellowMellow/web13_Boarlog Dec 11, 2023
- 강의 생성 시에 토큰이 유효한지를 판단하는 로직을 추가하였습니다.
LellowMellow added a commit that referenced this issue Dec 12, 2023
Fix(#254): home 페이지 강의 생성/조회 API 수정
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE 프론트엔드 작업 🐞 Fix 버그 수정
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant