Skip to content

Commit de132a9

Browse files
authored
refactor: remove required biometrics for hmac key for now (#10)
* refactor: remove required biometrics for hmac key for now * chore: version bump * chore: version bump package
1 parent 815ad27 commit de132a9

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tauri-plugin-keystore"
3-
version = "2.4.0"
3+
version = "2.4.1"
44
authors = ["0x330a"]
55
description = "Interact with the device-native key storage (Android Keystore, iOS Keychain) & perform ecdh operations for generating symmetric keys"
66
edition = "2021"

android/src/main/java/KeystorePlugin.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,7 @@ class KeystorePlugin(private val activity: Activity) : Plugin(activity) {
280280
val parameterSpec = KeyGenParameterSpec.Builder(
281281
KEY_HMAC_ALIAS,
282282
KeyProperties.PURPOSE_SIGN
283-
)
284-
// Require authentication on every use:
285-
.setUserAuthenticationRequired(!BuildConfig.DEBUG)
286-
.setInvalidatedByBiometricEnrollment(false)
287-
.setUserAuthenticationValidityDurationSeconds(-1)
288-
.build()
283+
).build()
289284
keyGenerator.init(parameterSpec)
290285
keyGenerator.generateKey()
291286
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metasig/tauri-plugin-keystore-api",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"author": "0x330a",
55
"description": "Interact with the device-native key storage (Android Keystore, iOS Keychain) & perform ecdh operations for generating symmetric keys",
66
"type": "module",

0 commit comments

Comments
 (0)