From 879a277dfc77e9c9bf697dcd7bf2f5103b6c82be Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 19 Nov 2022 22:03:49 +0100 Subject: [PATCH] nextcloud: Actually expose the CookieJar --- packages/nextcloud/lib/src/client.dart | 1 + packages/nextcloud/test/helper.dart | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/nextcloud/lib/src/client.dart b/packages/nextcloud/lib/src/client.dart index 4e407e44..803bd6bd 100644 --- a/packages/nextcloud/lib/src/client.dart +++ b/packages/nextcloud/lib/src/client.dart @@ -10,6 +10,7 @@ class NextcloudClient extends Client { final String? language, final AppType appType = AppType.unknown, final String? userAgentOverride, + super.cookieJar, }) : super( baseHeaders: ({ 'OCS-APIRequest': 'true', diff --git a/packages/nextcloud/test/helper.dart b/packages/nextcloud/test/helper.dart index 0d339906..6958e589 100644 --- a/packages/nextcloud/test/helper.dart +++ b/packages/nextcloud/test/helper.dart @@ -91,6 +91,7 @@ class TestNextcloudClient extends NextcloudClient { super.language, super.appType, super.userAgentOverride, + super.cookieJar, }); } @@ -138,6 +139,7 @@ Future getTestClient( password: clientPassword, appType: appType, userAgentOverride: userAgentOverride, + cookieJar: CookieJar(), ); while (true) {