From b374e9447e1a96ff01696982de7403b53a2f7e1f Mon Sep 17 00:00:00 2001 From: Deepjyoti Barman Date: Mon, 30 Sep 2024 13:19:06 +0530 Subject: [PATCH] fix: Failing cookie related tests This fixes failing tests regarding cookies due to a jsonEncode that was being called on a list type of variable --- lib/src/cookie-store.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/cookie-store.dart b/lib/src/cookie-store.dart index a9390a4..90d23d3 100644 --- a/lib/src/cookie-store.dart +++ b/lib/src/cookie-store.dart @@ -53,7 +53,7 @@ class SuperTokensCookieStore { /// If you are trying to store cookies from a "set-cookie" header response, consider using the [saveFromSetCookieHeader] utility method which parses the header string. Future saveFromResponse(Uri uri, List cookies) async { logDebugMessage('SuperTokensCookieStore.saveFromResponse: Saving cookies against: ${uri}'); - logDebugMessage('SuperTokensCookieStore.saveFromResponse: Passed cookies: ${jsonEncode(cookies)}'); + logDebugMessage('SuperTokensCookieStore.saveFromResponse: Total passed cookies: ${cookies.length}'); await Future.forEach(cookies, (element) async { Uri uriToStore = await _getCookieUri(uri, element); logDebugMessage('SuperTokensCookieStore.saveFromResponse: Setting based on uriToStore: ${uriToStore}');