ember-simple-auth icon indicating copy to clipboard operation
ember-simple-auth copied to clipboard

When syncing tabs (session store), schedule of the refresh token should be updated

Open josemarluedke opened this issue 3 years ago • 0 comments

When having multiple tabs open, each tab tracks when it needs to refresh the token. When one of the tabs refresh it, other tabs get the new values, however, they are still scheduled to fresh its original token. This behavior can lead to using old tokens to request new tokens depending on timing.

My suggestion is to reset the scheduled refresh token when the session data is updated across tabs (adaptive store, local storage, cookies).

josemarluedke avatar May 20 '22 20:05 josemarluedke