Skip to content

Commit 88b4a57

Browse files
committed
Fix PIN condition
1 parent b988cc7 commit 88b4a57

File tree

1 file changed

+5
-1
lines changed
  • android/app/src/main/kotlin/com/yubico/authenticator/fido

1 file changed

+5
-1
lines changed

android/app/src/main/kotlin/com/yubico/authenticator/fido/FidoManager.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,11 @@ class FidoManager(
351351
pinStore.setPin(null)
352352
fidoViewModel.updateCredentials(null)
353353

354-
pinRetries = if (pinStore.hasPin()) clientPin.pinRetries.count else null
354+
pinRetries = if (fidoSession.cachedInfo.options["clientPin"] == true)
355+
// pinRetries exists only if the authenticator has a PIN set
356+
clientPin.pinRetries.count
357+
else
358+
null
355359

356360
fidoViewModel.setSessionState(
357361
Session(

0 commit comments

Comments
 (0)