tsndr / cloudflare-worker-jwt

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

fix sign/verify secret parameter typing #78

Closed denbeigh2000 closed 2 months ago

denbeigh2000 commented 5 months ago

The sign and verify methods both accept string | JsonWebKey | WebCrypto for the secret parameter.

This updates the documentation and type annotations everywhere to reflect that.

tsndr commented 2 months ago

Thank you for your contribution :)