Closed uwolfer closed 1 year ago
Thanks for the report! Unfortunately, this is a recurring problem with a living spec and multiple browser implementations.
In particular, it seems that the field is required (but nullable) in the spec but authenticatorAttachment
is not available in Firefox 109 (or as of Firefox 111.0a1 nightly) on macOS, and I can't even find a bug for it: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=authenticatorAttachment
Some options:
PublicKeyCredentialWithClientExtensionResults
extend Omit<PublicKeyCredential, "authenticatorAttachment">
instead of PublicKeyCredential
.Option 2 is probably the least surprising, but it makes me very cranky about the health of the web platform.
I've submitted a Firefox bug at https://bugzilla.mozilla.org/show_bug.cgi?id=1810851
- Make
PublicKeyCredentialWithClientExtensionResults
extendOmit<PublicKeyCredential, "authenticatorAttachment">
instead ofPublicKeyCredential
.
I'm going to go with this option, because this is consistent with the schema, and I can't change the schema without changing Firefox:
With Typescript 4.9.4, I am getting the following error. With TS 4.8.4, no such error is thrown.