login required back
All checks were successful
platform/bro-js/journal.pl/pipeline/head This commit looks good

This commit is contained in:
Primakov Alexandr Alexandrovich 2025-01-07 18:09:54 +03:00
parent a133cea95c
commit d0f7dfb87d

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: 'check-sso' }) // 'login-required' });
await keycloak.init({ onLoad: 'login-required' })
const userInfo = await keycloak.loadUserInfo()
@ -28,7 +28,7 @@ export const mount = async (Component, element = document.getElementById('app'))
}
} catch (error) {
console.error('Failed to initialize adapter:', error)
// keycloak.login()
keycloak.login()
}
const store = createStore({ user });