From 6466f4ea6ccefe58230125370e17361a72882379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pomucz=20Tam=C3=A1s?= <pomucz@sch.bme.hu> Date: Fri, 7 Feb 2025 23:35:21 +0100 Subject: [PATCH] Not loading content after session expiry bug workaround --- src/actions/auth.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/actions/auth.js b/src/actions/auth.js index 937d872..4de2837 100644 --- a/src/actions/auth.js +++ b/src/actions/auth.js @@ -58,6 +58,11 @@ export const getUserData = () => async (dispatch) => { }); } catch (e) { console.log(e); + + // Invalid session bug workaround + if (!e.response) { + window.location = "/oidc/logout" + } } }; -- GitLab