diff --git a/Cargo.toml b/Cargo.toml index 56e8141..1b9554e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-keystore" -version = "2.4.0" +version = "2.4.1" authors = ["0x330a"] description = "Interact with the device-native key storage (Android Keystore, iOS Keychain) & perform ecdh operations for generating symmetric keys" edition = "2021" diff --git a/android/src/main/java/KeystorePlugin.kt b/android/src/main/java/KeystorePlugin.kt index 2228e7b..26b55a1 100644 --- a/android/src/main/java/KeystorePlugin.kt +++ b/android/src/main/java/KeystorePlugin.kt @@ -280,12 +280,7 @@ class KeystorePlugin(private val activity: Activity) : Plugin(activity) { val parameterSpec = KeyGenParameterSpec.Builder( KEY_HMAC_ALIAS, KeyProperties.PURPOSE_SIGN - ) - // Require authentication on every use: - .setUserAuthenticationRequired(!BuildConfig.DEBUG) - .setInvalidatedByBiometricEnrollment(false) - .setUserAuthenticationValidityDurationSeconds(-1) - .build() + ).build() keyGenerator.init(parameterSpec) keyGenerator.generateKey() } diff --git a/package.json b/package.json index 1c55932..6bf5fdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metasig/tauri-plugin-keystore-api", - "version": "2.4.0", + "version": "2.4.1", "author": "0x330a", "description": "Interact with the device-native key storage (Android Keystore, iOS Keychain) & perform ecdh operations for generating symmetric keys", "type": "module",