Skip to content

Commit

Permalink
chore: delete console
Browse files Browse the repository at this point in the history
  • Loading branch information
KRimwoo committed Feb 14, 2024
1 parent 61e9268 commit 6647265
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/states/useAuthStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ const useAuthStore = create<IAuthStore>((set) => {
}))
},
logout: (isRefreshing) => {
console.log('isRefreshing: ', isRefreshing)
if (authData.accessToken && !isRefreshing) {
if (authData.accessToken && isRefreshing === undefined) {
axios
.get(`${API_URL}/api/v1/logout`, {
headers: {
Authorization: `Bearer ${authData.accessToken}`,
},
}).catch(()=>{
})
.catch(() => {
// console.log('만료된 토큰') -- do nothing
})
}
Expand Down

0 comments on commit 6647265

Please sign in to comment.