Zaubrik / djwt

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
MIT License
228 stars 23 forks source link

Node or browser version? #67

Closed ralyodio closed 2 years ago

ralyodio commented 2 years ago

Anyway to get this to work with nodejs or browser?

timonson commented 2 years ago

Did you try it? I don't think it works in Nodejs but std/node/crypto has bindings for it. It should work in the browser tho. I haven't tried it yet.

timonson commented 2 years ago

I just tested djwt in the browser. It is already compatible and works without any problems. Just use deno bundle to create a JavaScript file and you can create and verify JWTs there. I personally will not create a nodejs wrapper but I would probably accept a PR. I hope this answers your question.