mauriciovigolo / keycloak-angular

Easy Keycloak setup for Angular applications.
MIT License
730 stars 280 forks source link

Its taking around 3 to 4 seconds to initialise key-cloak in chrome 115 #514

Closed phenomuser closed 1 year ago

phenomuser commented 1 year ago

when using keycloak-angular and keycloak-js as mentioned below, Its taking around 3 to 4 seconds to initialise key-cloak in chrome 115
in other higher verisons of chrome and diff browsers like safari and mozilla its good(taking around 1 sec) in our angular app const _keycloak=new Keycloak({ url: 'our-auth-url' realm: 'realm', clientId: 'client-id', }); _keycloak.init({onLoad:"check-sso"}) .then(() => {

   this.jsEndTime = performance.now();
    console.log('kc init end -- ',  this.jsEndTime);
    console.log('-------------------------------');
    console.log('kc init total time -- ', this.jsEndTime - this.jsStartTime);
    console.log('-------------------------------');
  });
phenomuser commented 1 year ago

Please let me know if anyone facing similar issue

mauriciovigolo commented 1 year ago

Hi @phenomuser, I didn't hear about initialization timing issues before. Please make sure you have the right configuration in both webapp application and server configs. I'll close this issue, but if you see any problems in this regards yet, feel free to open the ticket or let me know. Thanks!