diff --git a/lib/core/auth_service.dart b/lib/core/auth_service.dart index c494928fc..e9ace30f1 100644 --- a/lib/core/auth_service.dart +++ b/lib/core/auth_service.dart @@ -66,7 +66,7 @@ class AuthService with Store { Future authenticate(String pin) async { final key = generateStoreKeyFor(key: SecretStoreKey.pinCodePassword); - final encodedPin = await secureStorage.read(secureStorage, key); + final encodedPin = await secureStorage.read(key: key); final decodedPin = decodedPinCode(pin: encodedPin!); return decodedPin == pin;