Skip to content

Commit

Permalink
Refacotr : 주석추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jobkaeHenry committed Dec 9, 2023
1 parent 5c07769 commit 8f8fae9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/hooks/useAxiosPrivate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import axios from "@/libs/axios";
import getTokenFromLocalStorage from "@/utils/getTokenFromLocalStorage";

/**
* 헤더에 로컬스토리지에 들어있는 토큰을 싣는 Intercepter 가 달린 Axios
* @returns AxiosPrivate
*/
const useAxiosPrivate = () => {
axios.interceptors.request.use(
(config) => {
Expand Down

0 comments on commit 8f8fae9

Please sign in to comment.