Skip to content

Commit

Permalink
Version review, code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Triolo committed Jul 3, 2024
1 parent 80901cc commit 80258cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [3.3.1] - 2024/07/03
## [3.3.0] - 2024/07/03
* Updated dependencies
* Fix: Check for null value before casting scope to String (thanks [xolf](https://github.com/xolf))
* Fix: Added support for the preferEphemeral behavior on android (thanks [dlatikaynen](https://github.com/dlatikaynen))
Expand Down
11 changes: 6 additions & 5 deletions lib/src/io_web_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ class IoWebAuth implements BaseWebAuth {
required String redirectUrl,
Map<String, dynamic>? opts}) async {
final preferEphemeral = (opts?['preferEphemeral'] == true);
final intentFlags = preferEphemeral ? ephemeralIntentFlags : defaultIntentFlags;
final intentFlags =
preferEphemeral ? ephemeralIntentFlags : defaultIntentFlags;

return await FlutterWebAuth2.authenticate(
callbackUrlScheme: callbackUrlScheme,
url: url,
options: FlutterWebAuth2Options(preferEphemeral: preferEphemeral, intentFlags: intentFlags)
);
callbackUrlScheme: callbackUrlScheme,
url: url,
options: FlutterWebAuth2Options(
preferEphemeral: preferEphemeral, intentFlags: intentFlags));
}
}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: oauth2_client

description: Flutter library for interacting with OAuth2 servers, with classes for transparent authorized requests, secure OAuth token storage, automatic token refeshing.
version: 3.3.1
version: 3.3.0
homepage: https://github.com/teranetsrl/oauth2_client
repository: https://github.com/teranetsrl/oauth2_client
environment:
Expand All @@ -14,7 +14,7 @@ dependencies:
flutter_secure_storage: ^9.2.2
flutter_web_auth_2: ^3.1.2
http: ^1.1.0
meta: ^1.8.0
meta: ^1.12.0
random_string: ^2.3.1

dev_dependencies:
Expand Down

0 comments on commit 80258cb

Please sign in to comment.