Skip to content

Commit

Permalink
fix: Failing cookie related tests
Browse files Browse the repository at this point in the history
This fixes failing tests regarding cookies due to a jsonEncode that was
being called on a list type of variable
  • Loading branch information
deepjyoti30-st committed Sep 30, 2024
1 parent 4486fe8 commit b374e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/cookie-store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> saveFromResponse(Uri uri, List<Cookie> 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<Cookie>(cookies, (element) async {
Uri uriToStore = await _getCookieUri(uri, element);
logDebugMessage('SuperTokensCookieStore.saveFromResponse: Setting based on uriToStore: ${uriToStore}');
Expand Down

0 comments on commit b374e94

Please sign in to comment.