Default: true. When b64 is false, the payload will not be encoded prior to signing.
Since, unencoded and detached are most useful together for large bodies, we would stream the data to sign. This would require a change to jwa in order to support this.
RFC7797 defines an extension to JSON Web Signatures to allow unencoded payloads.
Additional features
b64
header parameterRecommended API Changes
Add
opts.detached
Default:
false
. Whenopts.detached === false
, the payload is omitted from the payload. The separators remain where it would usually be. E.g.,Add
opts.header.b64
Default:
true
. Whenb64
isfalse
, the payload will not be encoded prior to signing.Since, unencoded and detached are most useful together for large bodies, we would stream the data to sign. This would require a change to
jwa
in order to support this.