Skip to content

chore: 헤더에 Authorization 설정#72

Merged
Yejiin21 merged 1 commit intodevelopfrom
chore/#71/set-auth-header
Mar 16, 2025
Merged

chore: 헤더에 Authorization 설정#72
Yejiin21 merged 1 commit intodevelopfrom
chore/#71/set-auth-header

Conversation

@Yejiin21
Copy link
Copy Markdown
Contributor

API 응답값을 받기 위해 헤더에 Authorizaiontoken값을 추가했습니다.

  • 토큰이 없을 시 백엔드에서 401에러를 response 값으로 보내주면 로그인 모달이 열리도록 설정
  • AuthContext.tsx에서 토큰유무와 로그인 모달이 열리고 닫히는 상태관리도 추가했습니다.

@Yejiin21 Yejiin21 added the 👨‍🔧 Chore 환경 설정 label Mar 16, 2025
@Yejiin21 Yejiin21 self-assigned this Mar 16, 2025
@Yejiin21 Yejiin21 linked an issue Mar 16, 2025 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@m3k0813 m3k0813 left a comment

Choose a reason for hiding this comment

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

LGTV :)

@Yejiin21 Yejiin21 merged commit db7aa87 into develop Mar 16, 2025
1 check passed
@Yejiin21 Yejiin21 deleted the chore/#71/set-auth-header branch March 16, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👨‍🔧 Chore 환경 설정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] 헤더에 Authorization 토큰 설정

2 participants