Update keycloak versions
MODIFY
package.json
package.json
"@angular/platform-browser-dynamic": "~10.1.2",
"@angular/router": "~10.1.2",
"angular2-toaster": "^8.0.0",
- "keycloak-admin": "^1.13.0",
- "keycloak-angular": "^7.3.1",
- "keycloak-js": "^10.0.2",
+ "keycloak-admin": "~1.14.5",
+ "keycloak-angular": "~8.1.0",
+ "keycloak-js": "~12.0.1",
"ngx-logger": "^4.0.7",
"rxjs": "^6.6.3",
"swagger-ui-dist": "^3.24.3",

MODIFY
src/app/app-init.ts
src/app/app-init.ts
@@ -42,6 +42,7 @@ export function initializer(keycloak: KeycloakService, tokenService: TokenServic
token: sessionStorage.getItem('api_mgmt_keycloak_token'),
refreshToken: sessionStorage.getItem('api_mgmt_keycloak_refresh_token')
},
+ loadUserProfileAtStartUp: true, // because of https://github.com/mauriciovigolo/keycloak-angular/pull/269
enableBearerInterceptor: true,
bearerExcludedUrls: ['/assets', '/clients/public']
}).then(success => {

Update keycloak versions (#11)