mirror of
https://github.com/ente-io/ente.git
synced 2025-08-06 22:52:45 +00:00
[mob][auth] macOS pin/passcode support
This commit is contained in:
parent
bc94882234
commit
f84054b4ce
@ -122,7 +122,7 @@ class LocalAuthenticationService {
|
||||
|
||||
Future<bool> isLocalAuthSupportedOnDevice() async {
|
||||
try {
|
||||
return Platform.isMacOS || Platform.isLinux
|
||||
return Platform.isLinux
|
||||
? await FlutterLocalAuthentication().canAuthenticate()
|
||||
: await LocalAuthentication().isDeviceSupported();
|
||||
} on MissingPluginException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user