check-sso
This commit is contained in:
parent
a401290920
commit
4b252259eb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user