diff --git a/packages/nextcloud/lib/src/client.dart b/packages/nextcloud/lib/src/client.dart index 87398b4e..ae7b33aa 100644 --- a/packages/nextcloud/lib/src/client.dart +++ b/packages/nextcloud/lib/src/client.dart @@ -12,7 +12,8 @@ class NextcloudClient extends openapi.NextcloudClient { final AppType appType = AppType.unknown, final String? userAgentOverride, super.cookieJar, - }) : super( + }) : assert(loginName != null || username == null, 'Provide loginName instead of username or both'), + super( baseHeaders: ({ 'OCS-APIRequest': 'true', 'Accept': 'application/json',