From d0f7dfb87d6601c649b5763824b7b323bbdaca26 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Tue, 7 Jan 2025 18:09:54 +0300 Subject: [PATCH] login required back --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 93b9895..d7626ee 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: '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 });