You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replacing PublicKeyCredentialJSON with object would work (with prose describing it's either RegistrationResponseJSON and AuthenticationResponseJSON), or there might be a solution with merging RegistrationResponseJSON and AuthenticationResponseJSON into one dictionary type somehow (would probably require some creativity with required/optional members in various dictionaries).
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out. WebIDL is so tricky to get right 😅
Replacing PublicKeyCredentialJSON with object would work (with prose describing it's either RegistrationResponseJSON and AuthenticationResponseJSON)
I can submit a PR that aims to take things this direction. I'd hate to have to mash up everything into a single dictionary as I think it'd be quite messy for RP's to work with.
is invalid WebIDL.
RegistrationResponseJSON
andAuthenticationResponseJSON
are both dictionaries and thus not distinguishable, and WebIDL unions require each pair of flattened members in a union to be distinguishable.Replacing
PublicKeyCredentialJSON
withobject
would work (with prose describing it's eitherRegistrationResponseJSON
andAuthenticationResponseJSON
), or there might be a solution with mergingRegistrationResponseJSON
andAuthenticationResponseJSON
into one dictionary type somehow (would probably require some creativity with required/optional members in various dictionaries).The text was updated successfully, but these errors were encountered: