mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 02:01:36 +03:00
make displayName nullable
This commit is contained in:
parent
965f36c9cb
commit
b1322102db
@ -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 ->
|
||||||
|
@ -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()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user