Skip to content

Conversation

@gustn99
Copy link
Collaborator

@gustn99 gustn99 commented Oct 22, 2025

작업 내용

  • 로그인 시 토큰을 쿠키로 전달받도록 수정했습니다.
  • 다만 kick-on 도메인에서 localhost로 쿠키를 전달할 수 없었기 때문에, 서버에서 로컬에는 경로에도 토큰을 포함해 주기로 했습니다.
  • 그에 따라 프론트도 DOMAIN_URL을 기준으로 local 여부를 판단해 local에서는 경로에 담겨 오는 토큰을 파싱하도록 구현했습니다.

민재님 로컬에서 로그인 및 새로고침 시 refresh가 정상 동작하는지 테스트 부탁드립니다!

@gustn99 gustn99 requested a review from mimizae October 22, 2025 05:51
@gustn99 gustn99 self-assigned this Oct 22, 2025
Copy link
Collaborator

@mimizae mimizae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이해가 쏙쏙 됐습니다 깔끔하네요!!!
특히 isLocal 변수를 활용해서 환경별 쿠키 설정을 분기하고 secure 옵션 하드 코딩 피하게 된 게 좋아요 ㅎ.ㅎ
확인이 늦어서 죄송합니다... 서버 504 해결되고 제 로컬에서 refresh가 정상 동작하는지 확인되면 바로 머지하겠습니다. 수고하셨습니다!

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.

3 participants