mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
feat: enhance cookie removal logic to clear all cookies on storage clear
This commit is contained in:
@@ -85,6 +85,9 @@ export const authStorage = {
|
||||
key("profile-id"),
|
||||
key("current-profile"),
|
||||
].forEach((k) => backend.remove(k));
|
||||
Cookies.remove("auth-token", { path: "/" });
|
||||
Object.keys(Cookies.get()).forEach((name) => {
|
||||
Cookies.remove(name);
|
||||
Cookies.remove(name, { path: "/" });
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user