-
Notifications
You must be signed in to change notification settings - Fork 1
fix: 도메인 클라쪽 수정 #245
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
fix: 도메인 클라쪽 수정 #245
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Walkthrough여러 파일의 Pinback URL에서 'www' 서브도메인을 제거하는 도메인 정규화 작업, MacStep 컴포넌트의 자산 import를 WEBP에서 SVG로 변경, 그리고 401/403 에러 처리 시 토큰 제거 로직을 비활성화하는 변경 사항이 포함됨. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (1 warning, 2 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Storybook chromatic 배포 확인: |
jjangminii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jinman
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/client/src/shared/apis/setting/axiosInstance.ts (1)
40-52: 401/403 응답 시 토큰을 제거하지 않아 인증 상태 불일치 및 반복적인 요청 실패 발생 가능request 인터셉터는 localStorage에 토큰이 존재하는 것만으로 Authorization 헤더를 자동으로 붙입니다(라인 12-20). 하지만 401/403 응답 핸들러에서 토큰을 제거하지 않으면(라인 49 주석 처리됨), 만료되거나 폐기된 토큰이 localStorage에 남아있게 되고, 사용자가 리다이렉트된 후 다른 API 호출을 수행할 때도 이 무효한 토큰이 계속 전송됩니다. 이는 다른 엔드포인트에서 반복적인 401 실패나 UI상 로그인 상태 불일치를 초래할 수 있습니다. 토큰을 제거하여 이후 요청이 토큰 없이 진행되도록 하거나, 명시적으로 Authorization 헤더 전송을 차단해야 합니다.
🔧 제안 수정
- // localStorage.removeItem('token'); + localStorage.removeItem('token');
📌 Related Issues
📄 Tasks
⭐ PR Point (To Reviewer)
공통 도메인 www. 제거합니다
📷 Screenshot
Summary by CodeRabbit
릴리스 노트
버그 수정
최적화
✏️ Tip: You can customize this high-level summary in your review settings.