diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/fido/FidoManager.kt b/android/app/src/main/kotlin/com/yubico/authenticator/fido/FidoManager.kt index d617c13d..839dae01 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/fido/FidoManager.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/fido/FidoManager.kt @@ -434,7 +434,7 @@ class FidoManager( (credentialData.user["id"] as ByteArray).asString(), credentialData.user["name"] as String, publicKeyCredentialDescriptor = credentialData.credentialId, - displayName = credentialData.user["displayName"] as String, + displayName = credentialData.user["displayName"] as String?, ) } }.reduceOrNull { credentials, credentialList -> diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/fido/data/FidoCredential.kt b/android/app/src/main/kotlin/com/yubico/authenticator/fido/data/FidoCredential.kt index cdf2abbd..18a201ef 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/fido/data/FidoCredential.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/fido/data/FidoCredential.kt @@ -31,7 +31,7 @@ data class FidoCredential( @SerialName("user_name") val userName: String, @SerialName("display_name") - val displayName: String, + val displayName: String?, @Transient val publicKeyCredentialDescriptor: Map = emptyMap() )