diff --git a/CHANGELOG.md b/CHANGELOG.md index ea3d012..b5f37d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.4.1] - 2022/07/14 +* Fix accessing secure token storage on newer Android versions. + ## [2.4.0] - 2022/05/03 * Fix for token renewal process through the refresh token flow * Expose the TokenStorage class diff --git a/lib/src/secure_storage.dart b/lib/src/secure_storage.dart index f3583bb..6296a14 100644 --- a/lib/src/secure_storage.dart +++ b/lib/src/secure_storage.dart @@ -4,7 +4,9 @@ import 'package:flutter_secure_storage/flutter_secure_storage.dart'; BaseStorage createStorage() => SecureStorage(); class SecureStorage implements BaseStorage { - static final FlutterSecureStorage storage = FlutterSecureStorage(); + static final FlutterSecureStorage storage = FlutterSecureStorage( + aOptions: AndroidOptions(encryptedSharedPreferences: true), + ); SecureStorage(); diff --git a/pubspec.yaml b/pubspec.yaml index 32750bf..b53eea5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: 2.4.0 +version: 2.4.1 homepage: https://github.com/teranetsrl/oauth2_client repository: https://github.com/teranetsrl/oauth2_client environment: