Zaubrik / djwt

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

validateJwt() error #12

Closed ZyaCon closed 4 years ago

ZyaCon commented 4 years ago

Hello ! The validateJwt() function changed since your last commit and now I can't have my token when using it. The token I get is "Invalid Signature" : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZG1pbiIsImV4cCI6MTU5MTgyMDU5NzQ1NX0.QcfGBvexnUUP0b1-5KlEM7A3AuMtsTjijFVOhaYNRBE When I try your exemple form your github in my project It doesn't work

Maybe I do something wrong but I don't know how to solve this Thanks for your work and help !

timonson commented 4 years ago

Hi @Sakaiiz I just tested the examples in this repo again and they do work. What I would recommend is updating deno (deno upgrade --version 1.0.5) and running deno run -A --reload file.ts once. Please let me know if this fixes it.