Bun corpus slice
- Position 4034:
js/third_party/jsonwebtoken/verify.test.js
Current first failure
Unsigned alg=none tokens are emitted with a synthetic signature and surface invalid signature; upstream requires distinct jwt signature is required / explicit algorithms: ["none"] behavior.
Acceptance criteria
- reproduce signed/unsigned token policy including explicit
noneopt-in - support synchronous and delayed secret/public-key provider callbacks, while rejecting provider functions in synchronous verification
- preserve provider callback failures as structured verification errors with original causes and operation stacks
- validate
clockTimestamptypes before claim comparisons - emit exact asymmetric key-type/algorithm diagnostics
- keep options immutable
- focused, adjacent, and permanent JWT matrices pass