I am trying to have different tabs of the same domain NOT share the local storage
.
The reason is that I would need to allow multiple users to be authenticated on different tabs. Authentication is achieved through a JWT Token
stored in local storage.
So far the workarounds I am thinking of are the following:
- Open a new tab in incognito mode (sadly not technically feasible)
- Use a library such as across-tabs and through parent child comunication tell the child tab to use session storage rather than local storage
Is there a way to have e.g. a parent tab open a child tab and have him use an "unsychronized" storage? If not, what strategy would you use?