From f49c4f072ed92c1ef85596cf311ec784f20b167c Mon Sep 17 00:00:00 2001 From: Hamza Mahjoubi Date: Mon, 26 Aug 2024 18:57:37 +0200 Subject: [PATCH] fix: space in token causes 404 on logout Signed-off-by: Hamza Mahjoubi --- src/js/helpers/modules/cookieHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/helpers/modules/cookieHelper.js b/src/js/helpers/modules/cookieHelper.js index e68459862..1a7189dff 100644 --- a/src/js/helpers/modules/cookieHelper.js +++ b/src/js/helpers/modules/cookieHelper.js @@ -56,7 +56,7 @@ const deleteCookieByValue = (searchValue) => { if (cookieValue === searchValue) { deleteCookie(cookieName) - return cookieName + return cookieName.trim() } }