feat: interraction between the backend and keycloak
Some checks failed
CI / build (push) Failing after 9s

This commit is contained in:
Pierre Tellier
2025-02-11 10:00:11 +01:00
parent c32eea8a40
commit 249d00177c
7 changed files with 179 additions and 10 deletions

View File

@ -14,7 +14,8 @@ axiosInstance.interceptors.response.use(
async (error) => {
const originalRequest = error.config;
if (
error.response.status === 401 &&
((error.response && error.response.status === 401) ||
error.code == "ERR_NETWORK") &&
!originalRequest._retry &&
store.authenticated
) {