kinto-admin icon indicating copy to clipboard operation
kinto-admin copied to clipboard

When I ctrl-click on the edit button, I need to authenticate again

Open almet opened this issue 6 years ago • 2 comments

While trying to find a way to edit multiple records in batch, I've tried to open the edition form in as-many separate tabs as records I wanted to edit.

But when going to these newly created tabs, I'm presented with the authentication form (even if I'm already identified !)

almet avatar Oct 25 '18 19:10 almet

We should use cookies instead of sessionStorage then

https://github.com/Kinto/kinto-admin/blob/14fc9e075ff69822b829d0d106c333c11b98599a/src/store/localStore.js#L44-L61

leplatrem avatar Oct 26 '18 08:10 leplatrem

There's a storage event you can subscribe to to listen for changes performed outside of the current page environment. It looks like this:

// Ensure session is refreshed when it changes in another tab/window
window.addEventListener("storage", (event) => {
  if (event.storageArea === sessionStorage && event.key === "myStoreKeyName") {
    updateSessionData(event.newValue);
  }
}, false);

n1k0 avatar Nov 07 '19 08:11 n1k0

This is annoying me when testing things so I'm moving it into the current milestone

alexcottner avatar Nov 15 '23 15:11 alexcottner