diff --git a/src/index.tsx b/src/index.tsx index ce518bd..e5541c0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -10,7 +10,7 @@ const start = async () => { // onLoad: 'check-sso', // silentCheckSsoRedirectUri: `${location.origin}/silent-check-sso.html` try { - const authenticated = await keycloak.init({ onLoad: 'login-required' }); + const authenticated = await keycloak.init({ onLoad: 'check-sso' }) // 'login-required' }); console.log(`User is ${authenticated ? 'authenticated' : 'not authenticated'}`); } catch (error) { console.error('Failed to initialize adapter:', error);