Conversation
Contributor
GSB0203
commented
Jul 15, 2025
- HttpOnly 쿠키를 사용하면서도 프론트엔드에서 인증 처리
- 로컬스토리지에 인증 상태만 저장 (토큰은 HttpOnly 쿠키에 보관)
- 백엔드 API 호출 성공 여부로 인증 판단
- authenticatedApiRequest에서 credentials: 'include' 사용
- 24시간 인증 만료 처리 추가
- HttpOnly 쿠키를 사용하면서도 프론트엔드에서 인증 처리 - 로컬스토리지에 인증 상태만 저장 (토큰은 HttpOnly 쿠키에 보관) - 백엔드 API 호출 성공 여부로 인증 판단 - authenticatedApiRequest에서 credentials: 'include' 사용 - 24시간 인증 만료 처리 추가
Closed
- storage, authStateChanged 이벤트 및 polling으로 인증 상태 동기화 - 로그인 후 인증 상태가 즉시 반영되도록 개선
- AuthContext에서 /api/auth/check 엔드포인트 호출로 인증 상태 확인 - HttpOnly 쿠키 기반 인증 + localStorage UI 상태 관리 - 백엔드 응답에 따라 localStorage 자동 업데이트 - 로그인 콜백에서 서버 응답 디버깅 로그 추가
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.