Introduction이전 jwt포스팅 시리즈중 access토큰까지는 그래도 코드를 봐줄만했으나 refresh토큰이 추가된 순간 아주 코드가 더럽고 불결해졌다. 이걸 깔끔하게 하기위해서 jwt토큰로직을 interceptor, module, middleware을 활용해서 깔끔하고 재사용성있게 고쳐보자. Interceptor일단 우리가 흔히 쓰는 axios요청을 보자. axios.get("/api/test").then((res) => { console.log(res.data.message); }).catch((err)=>{ console.log(err.message) });내가 지금까지 계속 사용했던 axios요청이다.근데 /api요청으로 보내는 axios를 아예 변수로 선..