Skip to content

Conversation

@horororok
Copy link
Collaborator

@horororok horororok commented Dec 17, 2024

이슈 번호

close #55

변경 사항 요약

클라이언트 컴포넌트에서 사용할 axios 인스턴스입니다.

  • 보호된(인증이 필요한) 엔드포인트의 경우 자동으로 인증 토큰 추가
  • 공개 엔드포인트(로그인, 회원가입)은 인증토큰 추가 제외
  • 401 에러 발생(토큰 만료) 시 토큰 갱신
  • 토큰 저장소 (로컬스토리지) 관리 및 정리
  • 인증 실패 시 로그인 페이지로 리다이렉트(로그인 페이지 경로는 수정 가능)

테스트 결과

베이스(develop) 브랜치에 포함되기 위한 코드는 모두 정상적으로 작동이 되어야 합니다.

ex) 결과물에 대한 스크린 샷

✨ 토큰 관리와 요청/응답 인터셉터가 포함된 커스텀 Axios 인스턴스 추가
이 커밋만 보시면 됩니다!

@horororok horororok self-assigned this Dec 17, 2024
@horororok horororok added the 📡 API API 관련 기능 label Dec 17, 2024
Copy link
Collaborator

@haksoo0918 haksoo0918 left a comment

Choose a reason for hiding this comment

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

api 함수들이 이뿌네요. 👍
env 파일 만들어야 겠군요. 혹시 api url 말고 더 추가한게 있으시면 공유 부탁드립니다.
모달과 api 할수랑은 따로 구분해서 올려 주시는게 맞는것 같습니다.

Copy link
Contributor

@junghwaYang junghwaYang left a comment

Choose a reason for hiding this comment

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

깔끔하게 잘 작성된 것 같습니다 👍🏻 수고하셨어요!!
@crazyupinc-design 지이님도 확인 부탁드려요~

Copy link
Collaborator

@crazyupinc-design crazyupinc-design left a comment

Choose a reason for hiding this comment

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

확인했습니다 👍🏻수고많으셨습니다

@junghwaYang
Copy link
Contributor

@horororok
머지 컴플릿 해결하시고 dev merge 해주세용

@horororok horororok merged commit 0de4e0a into develop Dec 18, 2024
1 check failed
@horororok horororok deleted the feature/#55_Axios-Instance branch December 18, 2024 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📡 API API 관련 기능

Projects

Status: 완료

Development

Successfully merging this pull request may close these issues.

Axios Instance

5 participants