From cdb58121242b587847fdcb65210c00c326c83469 Mon Sep 17 00:00:00 2001 From: estifanos Date: Sat, 1 Aug 2026 07:55:16 +0000 Subject: [PATCH] feat: enhance cookie removal logic to clear all cookies on storage clear --- libs/auth/src/lib/utils/auth-storage.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: "/" }); + }); }, };