This is a project template that integrates Keycloak authentication server to an Angular5 project. It provides an authentication guard service that can restrict a component from being accessible if a user is not logged in.
20
stars
18
forks
source link
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'login' of undefined #7
core.js:4197 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'login' of undefined
TypeError: Cannot read property 'login' of undefined
at Function.login (keycloak.service.ts:87)
at AuthGuardService.checkLogin (auth-guard.service.ts:28)
at AuthGuardService.canActivate (auth-guard.service.ts:16)
core.js:4197 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'login' of undefined TypeError: Cannot read property 'login' of undefined at Function.login (keycloak.service.ts:87) at AuthGuardService.checkLogin (auth-guard.service.ts:28) at AuthGuardService.canActivate (auth-guard.service.ts:16)