remove comment
Some checks failed
platform/bro/pipeline/head This commit looks good
platform/gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
platform/bro-js/journal.pl/pipeline/head This commit looks good

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-08-07 23:37:45 +03:00
parent a94acbf7d3
commit fb267a11f9

View File

@ -12,7 +12,7 @@ let rootElement: ReactDOM.Root
export const mount = async (Сomponent, element = document.getElementById('app')) => {
let user = null;
try {
await keycloak.init({ onLoad: "login-required" }); // 'login-required' });
await keycloak.init({ onLoad: "login-required" });
user = { ...(await keycloak.loadUserInfo()), ...keycloak.tokenParsed };
} catch (error) {
console.error("Failed to initialize adapter:", error);