We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec4fbc commit cc4eaceCopy full SHA for cc4eace
android/app/src/main/kotlin/com/yubico/authenticator/oath/OathManager.kt
@@ -378,7 +378,11 @@ class OathManager(
378
val remembered = keyManager.isRemembered(it.deviceId)
379
if (unlocked) {
380
oathViewModel.setSessionState(it.model(remembered))
381
- oathViewModel.updateCredentials(calculateOathCodes(it).model(it.deviceId))
+
382
+ // fetch credentials after unlocking only if the YubiKey is connected over USB
383
+ if ( appViewModel.connectedYubiKey.value != null) {
384
+ oathViewModel.updateCredentials(calculateOathCodes(it).model(it.deviceId))
385
+ }
386
}
387
388
jsonSerializer.encodeToString(mapOf("unlocked" to unlocked, "remembered" to remembered))
0 commit comments