Skip to content

Commit

Permalink
fix/#392: 로그아웃이 제대로 안되는 문제 해결 (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyeryongChoi authored Sep 13, 2023
1 parent 8930b88 commit 8bb303b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ const defaultConfig = {

export const createConfigWithAuth = (tokens: Tokens | null) =>
tokens
? Object.assign(defaultConfig, {
? {
...defaultConfig,
headers: {
Authorization: `Bearer ${tokens.accessToken}`,
},
})
}
: defaultConfig;

export const clientBasic = axios.create(defaultConfig);
Expand Down

0 comments on commit 8bb303b

Please sign in to comment.