Handling @ng-idle globally for all pages

Here is how I handle user authentication. If you choose to adopt this strategy, your idle handler can simply call authNotifier.next(false) to log the user out, and the app will automatically move to the login page.