Skip to content
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

[#52] axios interceptor 추가 #56

Merged
merged 5 commits into from
Jan 19, 2024
Merged

[#52] axios interceptor 추가 #56

merged 5 commits into from
Jan 19, 2024

Conversation

dabin-Hailey
Copy link
Collaborator

close #52

Description

axios interceptor를 설정했습니다.

Todo

  • axios response interceptor 설정 (액세스 토큰 만료 시 리프레시 토큰 헤더에 같이 보내는 작업)
  • request interceptor에서 return config 추가
  • 로그인 하드코딩 수정

유의할 점 및 ETC (Optional)

로그인 유효성 검사 로직을 추가하지 않아서 주환님이 제공해주신 아이디와 비밀번호를 하드코딩으로 작성해두었습니다.
따라서 테스트하실 때 로그인 페이지에서 '로그인' 버튼만 눌러서 토큰과 사용자 정보가 잘 들어갔는지를 체크해보시고 API 연동하시면 될 것같습니다!

다음 작업으로 로그인 되었을 때만 페이지에 접근할 수 있도록 privateRouter 설정하겠습니다!

@dabin-Hailey dabin-Hailey self-assigned this Jan 19, 2024
Copy link

vercel bot commented Jan 19, 2024

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

Name Status Preview Updated (UTC)
cool-peace ✅ Ready (Inspect) Visit Preview Jan 19, 2024 11:25am
cool-peace-dev ✅ Ready (Inspect) Visit Preview Jan 19, 2024 11:25am

Copy link
Collaborator

@turkey-kim turkey-kim left a comment

Choose a reason for hiding this comment

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

빠른 설정 고생많으셨습니다!

@JitHoon JitHoon merged commit e435883 into dev Jan 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] axios interceptor 설정
3 participants