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
On the rs-ucan side, it would be trivial for us to omit these fields when they are not used. It would probably be better to omit them as it improves payload size (however marginally).
Do you have an opinion about what to do with fct? The spec says this field is optional, but current we emit an empty array no matter what.
Summary
Problem
ts-ucan
does not allownbf
andnnc
to benull
.Impact
ts-ucan
reports an invalid payload when either of these fields arenull
.Solution
Allow the fields to be
null
when validating payloads.The fields are checked here:
ts-ucan/src/types.ts
Lines 122 to 123 in 978dfd2
The text was updated successfully, but these errors were encountered: