Skip to content

[FEAT] 로그인 추가, 리프레쉬 토큰 처리, 토큰 처리 방식을 개선한다. #406

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
splitCoding opened this issue Sep 12, 2023 · 0 comments · Fixed by #446
Assignees
Labels
[ 🌙 BE ] 백엔드 크루들의 멋진 개발 이야기 하나둘셋 야! [ 🌞 FE ] 프론트엔드 크루들의 빛나는 개발 이야기 하나둘셋 호! ✨ Feat 꼼꼼한 기능 구현 중요하죠

Comments

@splitCoding
Copy link
Collaborator

🤷 구현할 기능

  • 로그인 추가
  • 리프레쉬 토큰 처리
  • 토큰 처리 방식을 개선

📄 참고 사항

BE, FE 협업을 통해 진행

⏰ 예상 작업 시간

⏰ 마감일

@splitCoding splitCoding added [ 🌙 BE ] 백엔드 크루들의 멋진 개발 이야기 하나둘셋 야! [ 🌞 FE ] 프론트엔드 크루들의 빛나는 개발 이야기 하나둘셋 호! ✨ Feat 꼼꼼한 기능 구현 중요하죠 labels Sep 12, 2023
ukkodeveloper added a commit that referenced this issue Sep 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
ukkodeveloper added a commit that referenced this issue Sep 21, 2023
* feat: accessToken 을 관리하는 localstorage 객체 생성

* feat: token storage에 setToken 메서드 추가

* feat: fetcher를 통해 요청하기 전에 access token 만료 검사

* fix: 테스트를 위해 토큰 재발급 시 요청 'GET'으로 변경

* fix: 요청 시 headers 스프레드 연산자 제거

* fix: 만료일 계산 로직 다시 설정

* fix: accessToken 만료시 요청 header 비워주도록 변경

* refactor: 만료일 계산 로직 util로 분리

* refactor: accessTokenStorage 활용하여 토큰관리

* feat: LoginPopUp 컴포넌트 구현

* refactor: AuthLayout이 필요한 page에 추가

* feat: 로그인 인증 에러 및 바운더리 추가

* feat: response ok가 아닐 경우 에러 객체 생성

* fix: auth error boundary 삭제

* feat: loginPopup 컨텍스트 구현 및 적용

* fix: 사용하지 않는 이유로 loginPopup Modal 삭제

* fix: 401 인증 실패시에 logout처리

* refactor: localstorage 로직을 accessTokenStorage에서 하도록 수정

* fix: mutate, query 시에 error 던지지 않도록 수정

* refactor: login 인증 코드가 undefined일 경우 처리

* fix: error 발생 시 불필요한 사이드 이펙트 발생 부분 제거

* feat: kakao Oauth 추가로 인한 router 및 경로 수정

* fix: 킬링파트 구간 등록시 모달 열리도록 수정

* fix: google oauth url 변경

* refactor: loginmodal message 배열에서 문자열로 받도록 수정

* feat: access token cache 기능 추가

* refactor: access token 만료 확인 로직 분리

* comment: 추후 error boundary 적용을 위한 주석 추가

* feat: login 팝업 모달 에러 코드별 처리

* style: 필요없는 주석 제거

* refactor: 불필요한 console.log 제거

* fix: 토큰 refresh 시에 GET에서 POST로 요청 메서드 변경

* feat: refresh 요청 401 응답 시 바로 error 발생
@github-project-automation github-project-automation bot moved this from Todo to Done in 2023-shook Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ 🌙 BE ] 백엔드 크루들의 멋진 개발 이야기 하나둘셋 야! [ 🌞 FE ] 프론트엔드 크루들의 빛나는 개발 이야기 하나둘셋 호! ✨ Feat 꼼꼼한 기능 구현 중요하죠
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants