Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

[Question] Keepalive event in multiple tabs #212

Open
iudelsmann opened this issue Feb 16, 2018 · 0 comments
Open

[Question] Keepalive event in multiple tabs #212

iudelsmann opened this issue Feb 16, 2018 · 0 comments

Comments

@iudelsmann
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant