Browse Source

fix(neon): Disable CookieJar on web

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/372/head
jld3103 2 years ago
parent
commit
65cc267bf5
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 3
      packages/neon/neon/lib/src/models/account.dart

3
packages/neon/neon/lib/src/models/account.dart

@ -2,6 +2,7 @@ import 'dart:convert';
import 'package:collection/collection.dart';
import 'package:crypto/crypto.dart';
import 'package:flutter/foundation.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:meta/meta.dart';
import 'package:nextcloud/nextcloud.dart';
@ -36,7 +37,7 @@ class Account implements Credentials {
password: password,
appPassword: password,
userAgentOverride: userAgent,
cookieJar: CookieJar(),
cookieJar: !kIsWeb ? CookieJar() : null,
);
factory Account.fromJson(final Map<String, dynamic> json) => _$AccountFromJson(json);

Loading…
Cancel
Save