Skip to content

Commit 5c2bc19

Browse files
committed
removed cookie jar
updated pubspec yaml for conflicts
1 parent 1570a5e commit 5c2bc19

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

templates/flutter/lib/src/client_browser.dart.twig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'dart:html' as html;
2-
import 'dart:io';
32
import 'package:cookie_jar/cookie_jar.dart';
43
import 'package:flutter_web_auth/flutter_web_auth.dart';
54
import 'package:http/http.dart' as http;
@@ -22,7 +21,6 @@ class ClientBrowser extends ClientBase with ClientMixin {
2221
Map<String, String>? _headers;
2322
late Map<String, String> config;
2423
late BrowserClient _httpClient;
25-
late CookieJar _cookieJar;
2624

2725
String? _endPointRealtime;
2826

@@ -144,12 +142,5 @@ class ClientBrowser extends ClientBase with ClientMixin {
144142
throw AppwriteException(
145143
"Invalid OAuth2 Response. Key and Secret not available.", 500);
146144
}
147-
Cookie cookie = new Cookie(key, secret);
148-
cookie.domain = Uri.parse(_endPoint).host;
149-
cookie.httpOnly = true;
150-
cookie.path = '/';
151-
List<Cookie> cookies = [cookie];
152-
await init();
153-
_cookieJar.saveFromResponse(Uri.parse(_endPoint), cookies);
154145
}); }
155146
}

templates/flutter/pubspec.yaml.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ repository: https://github.com/{{sdk.gitUserName}}/{{sdk.gitRepoName}}
66
issue_tracker: https://github.com/appwrite/sdk-generator/issues
77
documentation: {{ spec.contactURL }}
88
environment:
9-
sdk: '>=2.12.0 <3.0.0'
9+
sdk: '>=2.14.0 <3.0.0'
1010
dependencies:
1111
flutter:
1212
sdk: flutter
1313
cookie_jar: ^3.0.1
14-
device_info_plus: ^2.1.0
14+
device_info_plus: ^3.1.1
1515
flutter_web_auth: ^0.4.0
16-
http: ^0.13.3
17-
package_info_plus: ^1.0.4
18-
path_provider: ^2.0.2
16+
http: ^0.13.4
17+
package_info_plus: ^1.3.0
18+
path_provider: ^2.0.7
1919
web_socket_channel: ^2.1.0
2020
2121
dev_dependencies:

0 commit comments

Comments
 (0)