From 873f69094811545322f703e848c8fbaa4d69d194 Mon Sep 17 00:00:00 2001 From: Da-Jin Chu Date: Fri, 22 Mar 2024 21:33:06 +0000 Subject: [PATCH] fix: #664 Handle URL-encoded cookie values --- packages/analytics-client-common/src/storage/cookie.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics-client-common/src/storage/cookie.ts b/packages/analytics-client-common/src/storage/cookie.ts index f0945d83a..c80a498ef 100644 --- a/packages/analytics-client-common/src/storage/cookie.ts +++ b/packages/analytics-client-common/src/storage/cookie.ts @@ -37,7 +37,7 @@ export class CookieStorage implements Storage { } try { try { - value = decodeURIComponent(atob(value)); + value = decodeURIComponent(atob(decodeURIComponent(value))); } catch { // value not encoded }