diff --git a/libs/auth/src/lib/utils/auth-storage.ts b/libs/auth/src/lib/utils/auth-storage.ts index 27e546b4f..97df1c827 100644 --- a/libs/auth/src/lib/utils/auth-storage.ts +++ b/libs/auth/src/lib/utils/auth-storage.ts @@ -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: "/" }); + }); }, };