diff --git a/ffplayout/frontend/plugins/axios.js b/ffplayout/frontend/plugins/axios.js index 707e0c72..0cbcfb20 100644 --- a/ffplayout/frontend/plugins/axios.js +++ b/ffplayout/frontend/plugins/axios.js @@ -17,7 +17,7 @@ export default function ({ $axios, store, redirect }) { const originalRequest = error.config // prevent infinite loop - if (error.response.status === 401 && originalRequest.url.includes('auth/refresh/refresh')) { + if (error.response.status === 401 && originalRequest.url.includes('auth/refresh')) { store.commit('auth/REMOVE_TOKEN') redirect('/') return Promise.reject(error)