ng-idle
ng-idle copied to clipboard
[Question] Keepalive event in multiple tabs
This is more of a question than a bug. I'm using ngIdle keepalive service to refresh a user token from time to time. But when using multiple tabs, the keepalive event and the ping is triggered for each tab, making me refresh my token unecessarly.
This library does avoid IndleWarn events by using localStorage, should it do the same with Keepalive? Or should I manually use localStorage to save a "lastRefreshAt" or something like to that, and verify it's value before performing the refresh?