Skip to content

Commit

Permalink
chore: axios instance 투두 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
joojjang committed Nov 20, 2024
1 parent 5752aea commit b141b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apis/fetchInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const initInstance = (config: AxiosRequestConfig): AxiosInstance => {
},
});

// todo: 검색 등은 토큰 넣지 말기
// API 요청 시마다 최신 토큰을 가져옴
instance.interceptors.request.use((config) => {
const token = localStorage.getItem('accessToken');
Expand Down

0 comments on commit b141b00

Please sign in to comment.