Zaubrik / djwt

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

Make 'verify' accept a generic type argument for 'Payload' #71

Closed timonson closed 2 years ago

timonson commented 2 years ago

Make verify accept a generic type argument for Payload

const payload = await verify<{foo: string}>(jwt, key); // { foo: "bar" }