From 08c992654c27ebe3ed83e784b3896106b943d9de Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Thu, 18 Apr 2024 12:13:12 -0700 Subject: [PATCH] bio auth mac fix --- lib/entities/biometric_auth.dart | 2 ++ pubspec_base.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/entities/biometric_auth.dart b/lib/entities/biometric_auth.dart index 463a22775..3aa34c4b2 100644 --- a/lib/entities/biometric_auth.dart +++ b/lib/entities/biometric_auth.dart @@ -18,6 +18,8 @@ class BiometricAuth { bool canAuthenticate; try { canAuthenticate = await _flutterLocalAuthenticationPlugin.canAuthenticate(); + // Setup TouchID Allowable Reuse duration + await _flutterLocalAuthenticationPlugin.setTouchIDAuthenticationAllowableReuseDuration(2); } catch (error) { print("Exception checking support. $error"); canAuthenticate = false; diff --git a/pubspec_base.yaml b/pubspec_base.yaml index e1022864c..7b6273c54 100644 --- a/pubspec_base.yaml +++ b/pubspec_base.yaml @@ -26,7 +26,7 @@ dependencies: path_provider: ^2.0.11 mobx: ^2.1.4 flutter_mobx: ^2.0.6+5 - flutter_slidable: ^2.0.0 + flutter_slidable: ^3.0.1 share_plus: ^4.0.10 # date_range_picker: ^1.0.6 #https://api.flutter.dev/flutter/material/showDateRangePicker.html @@ -34,7 +34,9 @@ dependencies: hive: ^2.2.3 hive_flutter: ^1.1.0 local_auth_android: 1.0.21 - flutter_local_authentication: ^1.2.0 + flutter_local_authentication: + git: + url: https://github.com/cake-tech/flutter_local_authentication package_info: ^2.0.0 #package_info_plus: ^1.4.2 devicelocale: