From 3242576a12fe76465ae945a1ae86de7ff3358fe7 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Tue, 7 Jan 2025 16:42:04 +0300 Subject: [PATCH] check sso 2 debug --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index cb205e5..dd74beb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -17,7 +17,7 @@ let rootElement: ReactDOM.Root export const mount = async (Component, element = document.getElementById('app')) => { let user = null; try { - await keycloak.init({ onLoad: "login-required" }); + await keycloak.init({ onLoad: "check-sso" }); // "login-required" }); user = { ...(await keycloak.loadUserInfo()), ...keycloak.tokenParsed }; } catch (error) { console.error("Failed to initialize adapter:", error);