Skip to content

Commit

Permalink
Merge branch 'PiotrMitkowski-android-storage-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
okrad committed Jul 17, 2022
2 parents 820a35d + 287c409 commit 3cd8b74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/src/secure_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion 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: 2.4.0
version: 2.4.1
homepage: https://github.com/teranetsrl/oauth2_client
repository: https://github.com/teranetsrl/oauth2_client
environment:
Expand Down

0 comments on commit 3cd8b74

Please sign in to comment.