From 4b252259ebacf5513d9a29bce858245f573150e4 Mon Sep 17 00:00:00 2001 From: primakov Date: Thu, 15 Feb 2024 18:40:06 +0300 Subject: [PATCH] check-sso --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);