From ffb22ff1ff28408465ff0c9a2b67b5d92d2a4f8c Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Mon, 24 May 2021 10:50:47 -0700 Subject: [PATCH] fix: UI should automatically retrigger SSO login after token expiration (#6309) Signed-off-by: Alexander Matyushentsev --- ui/src/app/app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/app.tsx b/ui/src/app/app.tsx index 27912ec400..3506d751d2 100644 --- a/ui/src/app/app.tsx +++ b/ui/src/app/app.tsx @@ -57,8 +57,8 @@ const versionLoader = services.version.version(); async function isExpiredSSO() { try { - const {loggedIn, iss} = await services.users.get(); - if (loggedIn && iss !== 'argocd') { + const {iss} = await services.users.get(); + if (iss && iss !== 'argocd') { const authSettings = await services.authService.settings(); return ((authSettings.dexConfig && authSettings.dexConfig.connectors) || []).length > 0 || authSettings.oidcConfig; }