A human-palatable name for the user account, intended only for display. The Relying Party SHOULD let the user choose this, and SHOULD NOT restrict the choice more than necessary. If no suitable or human-palatable name is available, the Relying Party SHOULD set this value to an empty string.
(Emphasis mine)
I should update generateRegistrationOptions() accordingly to match this behavior. Right now it defaults to the same value as userName when not specified.
Describe the issue
The definition of
PublicKeyCredentialUserEntity.displayName
was refined in L3 to declare that it is preferable to set this value to an empty string when it's not needed:(Emphasis mine)
I should update
generateRegistrationOptions()
accordingly to match this behavior. Right now it defaults to the same value asuserName
when not specified.