로그인 후 세션 갱신 경쟁 상태를 수정합니다. - #80
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
로그인 API가 성공해도 로그인 전에 시작한 세션 조회를 재사용하면 홈은 계속 로그아웃 상태를 표시하고 보호된 페이지는 로그인으로 되돌아갑니다. 세션을 새로 조회하고 가장 최근 결과가 반영된 뒤 이동하도록 수정했습니다.
SessionProvider의 전역 진행 중 요청을 재사용해 로그인 전 쿠키로 보낸 응답이 로그인 이후에도 적용됐습니다. 조회가 겹치면 오래된 응답이나 오류가 최신 상태를 덮을 수도 있었습니다.변경은
client/src/components/portal/SessionProvider.tsx한 파일에 한정했습니다. 로그인·가입·재인증 화면의 기존 세션 갱신 호출에 적용됩니다.검증:
LoginPage와SessionProvider를 사용한 로컬 브라우저 검사에서 수정 전의 인증 성공 후 로그아웃 상태 유지 문제를 재현했습니다. 테스트 API와 합성 계정만 사용했습니다.운영 확인: 현재 배포된 로그인 JS에는
main에 이미 병합된 로그인 후 세션 갱신도 반영되지 않았습니다. 웹 배포가 필요하며 이 환경에는 지정된 VPS 배포 키가 없어 아직 배포하지 않았습니다.