tsndr / cloudflare-worker-jwt

A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers.
MIT License
649 stars 51 forks source link

Type definition does not allow for `kid` #54

Closed slester closed 8 months ago

slester commented 9 months ago

In this case, trying to sign a JWT:

error TS2353: Object literal may only specify known properties, and 'kid' does not exist in type '{ typ?: string | undefined; }'.

     {algorithm: 'RS256', header: {kid: REDACTED, typ: 'JWT'}},