-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Today I ran into a problem that doesn't happen when using localStorage directly.
In the application that I am developing, if there are 2 tabs open and one of them updates the secureLocalStorage, the data is not reflected in the other tab. This is problematic as I use secureLocalStorage to store the access token and if one of the tabs rotates the token the other never finds out unless that tab is refreshed.
I was digging into the code and I think I understand that getAllLocalStorageItems is called only once when loading the page, so I propose that there be a function that allows one and/or all of the localStorage keys to be updated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels