From f84054b4ceb68cda29e14023275ca7f9965eeb49 Mon Sep 17 00:00:00 2001 From: Aman Raj Singh Mourya Date: Mon, 19 Aug 2024 17:36:04 +0530 Subject: [PATCH] [mob][auth] macOS pin/passcode support --- auth/lib/services/local_authentication_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/lib/services/local_authentication_service.dart b/auth/lib/services/local_authentication_service.dart index f47ed693cd..9072d02184 100644 --- a/auth/lib/services/local_authentication_service.dart +++ b/auth/lib/services/local_authentication_service.dart @@ -122,7 +122,7 @@ class LocalAuthenticationService { Future isLocalAuthSupportedOnDevice() async { try { - return Platform.isMacOS || Platform.isLinux + return Platform.isLinux ? await FlutterLocalAuthentication().canAuthenticate() : await LocalAuthentication().isDeviceSupported(); } on MissingPluginException {