make displayName nullable

This commit is contained in:
Adam Velebil 2024-04-05 15:48:04 +02:00
parent 965f36c9cb
commit b1322102db
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10
2 changed files with 2 additions and 2 deletions

View File

@ -434,7 +434,7 @@ class FidoManager(
(credentialData.user["id"] as ByteArray).asString(), (credentialData.user["id"] as ByteArray).asString(),
credentialData.user["name"] as String, credentialData.user["name"] as String,
publicKeyCredentialDescriptor = credentialData.credentialId, publicKeyCredentialDescriptor = credentialData.credentialId,
displayName = credentialData.user["displayName"] as String, displayName = credentialData.user["displayName"] as String?,
) )
} }
}.reduceOrNull { credentials, credentialList -> }.reduceOrNull { credentials, credentialList ->

View File

@ -31,7 +31,7 @@ data class FidoCredential(
@SerialName("user_name") @SerialName("user_name")
val userName: String, val userName: String,
@SerialName("display_name") @SerialName("display_name")
val displayName: String, val displayName: String?,
@Transient @Transient
val publicKeyCredentialDescriptor: Map<String, Any?> = emptyMap() val publicKeyCredentialDescriptor: Map<String, Any?> = emptyMap()
) )