From c21a3b7c481b6be7077efabc7f46ff9c8e8a0f48 Mon Sep 17 00:00:00 2001 From: Kayos Date: Sat, 28 Mar 2026 11:35:18 -0700 Subject: [PATCH] fix(wallet): use 30s auth validity window instead of per-use biometric MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit setUserAuthenticationValidityDurationSeconds(-1) requires BiometricPrompt.CryptoObject for every cipher operation. Changed to 30s window for alpha — proper CryptoObject flow deferred to Phase 5. Fixes UserNotAuthenticatedException on storeMnemonic/getMnemonic. --- .../features/wallet/impl/storage/CardanoKeyStorageImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/wallet/impl/src/main/kotlin/io/element/android/features/wallet/impl/storage/CardanoKeyStorageImpl.kt b/features/wallet/impl/src/main/kotlin/io/element/android/features/wallet/impl/storage/CardanoKeyStorageImpl.kt index 99c175e37b..4cb8643ea6 100644 --- a/features/wallet/impl/src/main/kotlin/io/element/android/features/wallet/impl/storage/CardanoKeyStorageImpl.kt +++ b/features/wallet/impl/src/main/kotlin/io/element/android/features/wallet/impl/storage/CardanoKeyStorageImpl.kt @@ -190,7 +190,7 @@ class CardanoKeyStorageImpl @Inject constructor( .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) .setKeySize(AES_KEY_SIZE) .setUserAuthenticationRequired(true) - .setUserAuthenticationValidityDurationSeconds(-1) + .setUserAuthenticationValidityDurationSeconds(30) .setInvalidatedByBiometricEnrollment(true) .build()