check sso 2 debug

This commit is contained in:
Primakov Alexandr Alexandrovich 2025-01-07 16:42:04 +03:00
parent a7168231a1
commit 3242576a12

View File

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