Updated Dart SDK
This commit is contained in:
parent
3f2524e17a
commit
0a700ee695
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue