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);