Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-27 15:41:44 +03:00
parent e1e4ff7d29
commit 364e5cb495

View file

@ -165,10 +165,12 @@ class DefaultHotWalletAccessor @Inject constructor(
block(auth)
}.getOrElse { exception ->
if (auth is HotAuth.Biometry && exception.isBiometryError()) {
val shouldRetryBiometry = exception is TangemSdkError.AuthenticationCanceled
// fallback to password if biometry fails
val passAuth = requestPassword(
hotWalletId = hotWalletId,
hasBiometry = true,
hasBiometry = shouldRetryBiometry,
)
return@getOrElse runCatchingWrongPassInternal(