Skip to content

Commit

Permalink
Fixed secure storage bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yani-Maassen committed May 15, 2024
1 parent 9e5a0ba commit 83ee9f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.0.7

- Changed secure storage read because of breaking bug on iOS

## 1.0.6

- Updated packages

## 1.0.5

- Updated `dio` package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FreshSecureTokenStorage implements TokenStorage<OAuthToken> {
@override
Future<OAuthToken?> read() async {
if (_token != null) return _token;
final tokenFromStorage = await storage.read(key: storageIdentifier);
final tokenFromStorage = (await storage.readAll())[storageIdentifier];
if (tokenFromStorage != null) {
// ignore: join_return_with_assignment
_token = tokenFromStorage.toOAuthToken;
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.5
version: 1.0.7
homepage: https://github.com/wisemen-digital/flutter-networking-client
repository: https://github.com/wisemen-digital/flutter-networking-client

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

# Secure storage
flutter_secure_storage: ^9.0.0
flutter_secure_storage: ^9.1.1

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

dev_dependencies:
# Static analysis & linting
lints: ^3.0.0
lints: ^4.0.0

# Testing
test: ^1.25.2
Expand Down

0 comments on commit 83ee9f8

Please sign in to comment.