Skip to content

Commit

Permalink
Fix: 백엔드 Authorization 헤더 prefix 수정에 따른 axiosInstance config에 Bearer …
Browse files Browse the repository at this point in the history
…옵션 추가 (#28)
  • Loading branch information
ParkSohyunee authored Feb 14, 2024
1 parent 6fd4773 commit f269e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/axios/axiosInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ axiosInstance.interceptors.request.use(
const accessToken = useUser.getState().user.accessToken;

if (accessToken) {
config.headers.Authorization = `${accessToken}`; // Bearer option 추가 예정
config.headers.Authorization = `Bearer ${accessToken}`;
}

return config;
Expand Down

0 comments on commit f269e41

Please sign in to comment.