diff --git a/client/src/app/auth/init.keycloak.ts b/client/src/app/auth/init.keycloak.ts index a3111fa4a751c3aeb54798d6c364885a4785b4d7..34ee8d9f7490c1d5f046dd676996fa9d50e97894 100644 --- a/client/src/app/auth/init.keycloak.ts +++ b/client/src/app/auth/init.keycloak.ts @@ -21,6 +21,9 @@ export function initializeKeycloak(keycloak: KeycloakService, store: Store<{ }>, } from(keycloak.keycloakEvents$).subscribe(event => { + if (event.type === KeycloakEventType.OnAuthLogout) { + store.dispatch(keycloakActions.logout()); + } if (event.type === KeycloakEventType.OnAuthSuccess) { store.dispatch(keycloakActions.authSuccess()); }