Updated on 2026-08-14
This commit is contained in:
parent
e1e4ff7d29
commit
364e5cb495
1 changed files with 3 additions and 1 deletions
|
|
@ -165,10 +165,12 @@ class DefaultHotWalletAccessor @Inject constructor(
|
||||||
block(auth)
|
block(auth)
|
||||||
}.getOrElse { exception ->
|
}.getOrElse { exception ->
|
||||||
if (auth is HotAuth.Biometry && exception.isBiometryError()) {
|
if (auth is HotAuth.Biometry && exception.isBiometryError()) {
|
||||||
|
val shouldRetryBiometry = exception is TangemSdkError.AuthenticationCanceled
|
||||||
|
|
||||||
// fallback to password if biometry fails
|
// fallback to password if biometry fails
|
||||||
val passAuth = requestPassword(
|
val passAuth = requestPassword(
|
||||||
hotWalletId = hotWalletId,
|
hotWalletId = hotWalletId,
|
||||||
hasBiometry = true,
|
hasBiometry = shouldRetryBiometry,
|
||||||
)
|
)
|
||||||
|
|
||||||
return@getOrElse runCatchingWrongPassInternal(
|
return@getOrElse runCatchingWrongPassInternal(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue