diff --git a/src/__data__/const.ts b/src/__data__/const.ts index d6b9faa..73cce12 100644 --- a/src/__data__/const.ts +++ b/src/__data__/const.ts @@ -2,6 +2,6 @@ import Keycloak from 'keycloak-js'; export const keycloak = new Keycloak({ url: 'https://kc.inno-js.ru', - realm: 'test', + realm: 'inno-js', clientId: 'jurnal' }); \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index 9a76216..ce518bd 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -6,9 +6,9 @@ import { keycloak } from './__data__/const'; export default () => ; - - const start = async () => { + // onLoad: 'check-sso', +// silentCheckSsoRedirectUri: `${location.origin}/silent-check-sso.html` try { const authenticated = await keycloak.init({ onLoad: 'login-required' }); console.log(`User is ${authenticated ? 'authenticated' : 'not authenticated'}`);