web-auth / webauthn-framework

FIDO-U2F / FIDO2 / Webauthn Framework
MIT License
425 stars 54 forks source link

getAlternativeDescriptions can return null #595

Closed marcriemer closed 5 months ago

marcriemer commented 6 months ago

Target branch: 5.0.x

The alternativeDescriptions property is optional in the constructor, and alternative descriptions are often not present in the fido metadata. This causes issues during deserialization. Therefore, the return of getAlternativeDescriptions() must be optional.

Spomky commented 5 months ago

Many thanks. As this method will be removed in branch 5.0.x, I suggest rebasing on 4.8.x.

Spomky commented 5 months ago

Resolved with #599. The version 4.8.7 tag will be applied shortly.