minor fix

This commit is contained in:
OmarHatem 2024-03-29 23:14:25 +02:00
parent f92c09a28c
commit 886f7a6f3c

View file

@ -66,7 +66,7 @@ class AuthService with Store {
Future<bool> 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;