login required back
All checks were successful
platform/bro-js/journal.pl/pipeline/head This commit looks good
All checks were successful
platform/bro-js/journal.pl/pipeline/head This commit looks good
This commit is contained in:
parent
a133cea95c
commit
d0f7dfb87d
@ -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 });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user