unjs / uncrypto

Single API for Web Crypto API and Crypto Subtle working in Node.js, Browsers and other runtimes
MIT License
182 stars 8 forks source link

easy creation and validation of JWTs #17

Open danielroe opened 1 year ago

danielroe commented 1 year ago

Describe the feature

I think it would be useful to have a JWT creation utility that works equivalently in node + worker environments

Additional information

pi0 commented 1 year ago

We could support some utils from /jwt subpath 👍🏼

tobychidi commented 11 months ago

I had used Jose in the past and it had some JWT Utils. I want to stick closely as much as possible to the Nuxt/Nitro Stack for this project I am building. So, I had to learn more about Web crypto. Then I thought, 'maybe I should do something similar to webcrypto-jwt, but then, I realized that Jose had inbuilt utils that made it much easier to use. Now, I'm thinking of contributing to UnCrypto to have JWT Utils. Time to get to work?

danielroe commented 11 months ago

That sounds fantastic!