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

fix: 401 에러시 바로 로그아웃 처리되지 않는 이슈 수정 #96

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

lgrin-byte
Copy link
Member

💡 다음 이슈를 해결했어요.

  • Axios 인터셉터는 Next에서 순수 자바스크립트로 실행돼서 useRouter 가 실행이 바로 안돼서 login 화면으로 안넘어감
  • window.location.href를 사용해서 강제로 이동하도록 함



✅ 셀프 체크리스트

  • 브랜치 전략에 맞는 브랜치에 PR을 올리고 있습니다. (master/main이 아닙니다.)
  • 커밋 메세지를 컨벤션에 맞추었습니다.
  • 변경 후 코드는 컴파일러/브라우저 warning/error 가 발생시키지 않습니다.
  • 변경 후 코드는 기존의 테스트를 통과합니다.
  • 테스트 추가가 필요한지 검토해보았고, 필요한 경우 테스트를 추가했습니다.
  • docs 수정이 필요한지 검토해보았고, 필요한 경우 docs를 수정했습니다.

@lgrin-byte lgrin-byte merged commit 3c4509b into develop Feb 5, 2025
2 checks passed
@lgrin-byte lgrin-byte deleted the fix/change-routing-logout branch February 5, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant