From 6f1c7e40e6718263a7d71554b0ffda3fee61bf8f Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Mon, 25 May 2020 10:45:11 +0200 Subject: [PATCH] Update axios.js --- ffplayout/frontend/plugins/axios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)