From b1cda209876ad78c4148cdb211abce9b2c55901e Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Thu, 3 Jun 2021 20:59:12 +0300 Subject: [PATCH] CAKE-336 | updated local_auth package and fixed isAuthenticated() method in the biometric_auth.dart --- lib/entities/biometric_auth.dart | 2 +- pubspec.lock | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/entities/biometric_auth.dart b/lib/entities/biometric_auth.dart index ab5d62445..10a05ebff 100644 --- a/lib/entities/biometric_auth.dart +++ b/lib/entities/biometric_auth.dart @@ -7,7 +7,7 @@ class BiometricAuth { Future isAuthenticated() async { try { - return await _localAuth.authenticateWithBiometrics( + return await _localAuth.authenticate( localizedReason: S.current.biometric_auth_reason, useErrorDialogs: true, stickyAuth: false); diff --git a/pubspec.lock b/pubspec.lock index 207f4b18a..a520abbe3 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -565,7 +565,7 @@ packages: name: local_auth url: "https://pub.dartlang.org" source: hosted - version: "1.1.1" + version: "1.1.6" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 4d1b63ceb..c3de221a9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -49,7 +49,7 @@ dependencies: path: ./cw_monero hive: ^1.4.4+1 hive_flutter: ^0.3.1 - local_auth: ^1.1.1 + local_auth: ^1.1.6 package_info: ^2.0.0 devicelocale: ^0.4.1 auto_size_text: ^2.1.0