tsndr / cloudflare-worker-jwt

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

Why does this not work with normal nodejs? #77

Open RScrusoe opened 4 months ago

RScrusoe commented 4 months ago

I am getting Subtle crypto not found error. Why would this not work on nodejs? Any work around to make it work on nodejs as well?

darzove commented 4 months ago

My understanding is this is intended to work within the context of a cloudflare worker. If you're not familiar, here is the page for runtime APIs available within the worker.

Within the node ecosystem, I recommend using the classic node-jsonwebtoken