kinto-admin
kinto-admin copied to clipboard
When I ctrl-click on the edit button, I need to authenticate again
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 !)
We should use cookies instead of sessionStorage then
https://github.com/Kinto/kinto-admin/blob/14fc9e075ff69822b829d0d106c333c11b98599a/src/store/localStore.js#L44-L61
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);
This is annoying me when testing things so I'm moving it into the current milestone