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) {