Skip to content

Option to reload local storage #32

@rmalca

Description

@rmalca

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions