Im sorry, this is not really an issue - I am the issue :) - but I cant figure out how to detected when the session/login expires.
I tried this in the app component, but it never seemed to get fired:
ngOnInit() {
this.isAuthorizedSubscription = this.oidcSecurityService.getIsAuthorized().subscribe(
(isAuthorized: boolean) => {
if (this.isAuthorized && !isAuthorized) {
// session expired - lockout the user
this.dialog.open(SessionExpiredDialogComponent, {
disableClose: false,
role: 'alertdialog'
});
}
console.log(`isAuth = ${isAuthorized}`);
this.isAuthorized = isAuthorized;
});
}
Thinking about adding an event or method for this
I like the idea of having an event for this... @damienbod shall we target this?
@FabianGosebrink new branch with this alone, easy to test
this.oidcSecurityService.getIsAuthorized() should now work in version 6.0.12
Most helpful comment
Thinking about adding an event or method for this