authenticate static method

Future<bool> authenticate({
  1. required String localizedReason,
  2. bool useErrorDialogs = true,
})

Prompts the user for biometric authentication with localizedReason.

Implementation

static Future<bool> authenticate({
  required String localizedReason,
  bool useErrorDialogs = true,
}) async {
  if (customAuthenticator != null) {
    return customAuthenticator!(
      localizedReason: localizedReason,
      useErrorDialogs: useErrorDialogs,
    );
  }
  // Default fallback: mock success
  return true;
}