subhendukundu / worker-auth-providers

worker-auth-providers is an open-source providers to make authentication easy with workers. Very lightweight script which doesn't need a lot of dependencies. Plug it with any framework or template of workers.
https://authc1.com
293 stars 31 forks source link

fix: removed jwt package and added one that's supported by workers #15

Closed da7a90-backup closed 2 years ago

da7a90-backup commented 2 years ago

I noticed that you're still using the regular jsonwebtoken package which from my understanding is not supported by workers because it has node dependencies (mainly crypto, jwa, jws and stream I think). I removed but currently in the examples I'm pointing to my fork because I use this in client projects.

subhendukundu commented 2 years ago

Thanks for your contribution. <3

da7a90-backup commented 2 years ago

@subhendukundu you should modify the readme, I added my email and Github instead of yours, I tried contacting you via mail almost a month ago but didn't get a reply, so I started working on the module to make it more friendly to Cloudflare Workers and publish it. Now that you replied I think it's better to work on the existing one and make it the de facto authentication provider library for developers building on CF Workers.

subhendukundu commented 2 years ago

Ah, I realised after merging it. :( Can you fix those please? and create a new PR.