[refactor] access token 전달 방식 변경 #83
Merged
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.
개요
CORS 설정 자체는 “Cross-Origin AJAX 통신에서 응답 헤더를 노출할 수 있느냐”를 결정할 뿐이며,
브라우저가 302 Redirect를 자동 처리해버리는 리다이렉트 응답에 대해서는 프론트엔드 코드가 응답 헤더를 직접 읽을 방법이 없다고 결론남
=> Access Token도 Header가 아닌 Cookie의 형태로 전달할 계획
프런트 측에서 로그인 상태변경을 감지하기 위한 사용자 정보 조회 API 구현
로그아웃 API 구현
PR 유형
어떤 변경 사항이 있나요?
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
<성공적으로 Cookie에 담긴 Access Token과 Refresh Token>

<쿠키에 담긴 Access Token으로 백엔드 측 DB에 있는 사용자와 일치하는지 검사 후 정보 전달>

<작동 시, 해당 사용자의 Access Token과 Refresh Token을 즉시 만료시켜 로그아웃 시킴>

📣 To Reviewers