I just have found a small typo in your readme. In the ngOnInit function you check for res instead of isTimedOut.
// initiate it in your component OnInit
ngOnInit(): void {
this.bnIdle.startWatching(60).subscribe((isTimedOut: boolean) => {
// if (res) { <--- should be as below
if (isTimedOutt) {
console.log('session expired');
}
});
}
Hi, thanks for the nice work! 👍
I just have found a small typo in your readme. In the ngOnInit function you check for res instead of isTimedOut.