File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 11import 'dart:html' as html;
2- import 'dart:io';
32import 'package:cookie_jar/cookie_jar.dart';
43import 'package:flutter_web_auth/flutter_web_auth.dart';
54import '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}
Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ repository: https://github.com/{{sdk.gitUserName}}/{{sdk.gitRepoName}}
66issue_tracker: https://github.com/appwrite/sdk-generator/issues
77documentation: {{ spec .contactURL }}
88environment:
9- sdk: '>=2.12 .0 <3 .0.0'
9+ sdk: '>=2.14 .0 <3 .0.0'
1010dependencies:
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
2121dev_dependencies:
You can’t perform that action at this time.
0 commit comments