79386862

Date: 2025-01-25 14:12:15
Score: 0.5
Natty:
Report link

This looks to be the easiest way to do it:

provideAppInitializer(async () => {
  const keycloakConfig = await inject(ConfigService).getConfig();

  if (keycloakConfig) {
    return provideKeycloak({
      config: {
        url: keycloakConfig.url,
        realm: keycloakConfig.realm,
        clientId: keycloakConfig.clientId
      }
    });
  } else {
    return null;
  }
})
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bernd