tsndr / cloudflare-worker-jwt

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

proper way to sign with header #6

Closed mrbm closed 2 years ago

mrbm commented 2 years ago

Quick question, if i needed to sign something with the following header:

{
  "alg": "HS256",
  "typ": "JWT",
  "dd-ver": "AA-JWT-V1"
}

What would be the proper way to go about doing this with your package...i seem to be failing.

Thanks!

mrbm commented 2 years ago

Reading through your code it seems this would not be possible :/

tsndr commented 2 years ago

https://github.com/tsndr/cloudflare-worker-jwt/pull/9