Merge branch 'master' of github.com:ffplayout/ffplayout-gui
This commit is contained in:
commit
eebb3fe094
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user