Skip to content

Commit

Permalink
Merge branch 'develop' into comment/#138
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Jul 21, 2022
2 parents 4915278 + 66c01c5 commit 50464ee
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ const baseInstance = axios.create({
baseInstance.interceptors.request.use((config) => {
const headers = {
...config.headers,
accessToken:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzAsImlhdCI6MTY1ODM4NDEwMCwiZXhwIjoxNjU4MzkxMzAwLCJpc3MiOiJub3JpIn0.ZNRxtGPFJpVCHJzlK0HdcgPcZWvkkCt3FZ_VHu8sz7M',
refreshToken:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzAsImlhdCI6MTY1ODM4NDEwMCwiZXhwIjoxNjU5NTkzNzAwLCJpc3MiOiJub3JpIn0.AeuhSmM1ZqItojeM3O0SwrELog-Qfq91r_ii0EMgPig',
accessToken: LocalStorage.getItem('accessToken'),
refreshToken: LocalStorage.getItem('refreshToken'),
};

return { ...config, headers };
Expand All @@ -37,7 +35,7 @@ baseInstance.interceptors.response.use(
if (status === 401) {
// token refresh 요청
const { data } = await axios.post(
`/auth/refresh`, // token refresh api
`/auth/token/refresh`, // token refresh api
{},
{
headers: {
Expand Down

0 comments on commit 50464ee

Please sign in to comment.