Skip to content

Commit

Permalink
Merge pull request #10 from wisemen-digital/bugfix/secure-storage-revert
Browse files Browse the repository at this point in the history
Reverted secure storage workaround and updated package
  • Loading branch information
Yani-Maassen authored Jun 4, 2024
2 parents eca4a57 + f091a1c commit 8667da0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.8

- Updated secure storage package and reverted workaround for efficiency

## 1.0.7

- Changed secure storage read because of breaking bug on iOS
Expand Down
6 changes: 2 additions & 4 deletions lib/src/secure_token_storage/fresh_secure_token_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ class FreshSecureTokenStorage implements TokenStorage<OAuthToken> {
@override
Future<OAuthToken?> read() async {
if (_token != null) return _token;
final tokenFromStorage = (await storage.readAll())[storageIdentifier];
final tokenFromStorage = await storage.read(key: storageIdentifier);
if (tokenFromStorage != null) {
// ignore: join_return_with_assignment
_token = tokenFromStorage.toOAuthToken;
return _token;
return tokenFromStorage.toOAuthToken;
} else {
return null;
}
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: wiseclient
description: A http client based on Dio with extra features and a few interceptors for basic functionality.
version: 1.0.7
version: 1.0.8
homepage: https://github.com/wisemen-digital/flutter-networking-client
repository: https://github.com/wisemen-digital/flutter-networking-client

Expand All @@ -19,11 +19,11 @@ dependencies:
fresh_dio: ^0.4.1

# Secure storage
flutter_secure_storage: ^9.1.1
flutter_secure_storage: ^9.2.2

# Logging & Debugging
native_dio_adapter: ^1.3.0
talker_dio_logger: ^4.1.3
talker_dio_logger: ^4.2.3

dev_dependencies:
# Static analysis & linting
Expand Down

0 comments on commit 8667da0

Please sign in to comment.