1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

Updated Dart SDK

This commit is contained in:
Eldad Fux 2020-06-17 13:46:15 +03:00
parent 3f2524e17a
commit 0a700ee695
2 changed files with 19 additions and 1 deletions

View file

@ -315,12 +315,26 @@ class Account extends Service {
'project': client.config['project'],
};
final List query = [];
params.forEach((key, value) {
if (value is List) {
for (var item in value) {
query.add(Uri.encodeComponent(key + '[]') + '=' + Uri.encodeComponent(item));
}
}
else {
query.add(Uri.encodeComponent(key) + '=' + Uri.encodeComponent(value));
}
});
Uri endpoint = Uri.parse(client.endPoint);
Uri url = new Uri(scheme: endpoint.scheme,
host: endpoint.host,
port: endpoint.port,
path: endpoint.path + path,
queryParameters:params,
query: query.join('&')
);
return FlutterWebAuth.authenticate(

View file

@ -1,3 +1,7 @@
## 0.2.3
- Added support for custom OAuth2 scopes
## 0.2.2
- Fixed an error that happend when the OAuth session creation request was sent before any other API call