tsndr / cloudflare-worker-jwt

A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers.
MIT License
680 stars 55 forks source link

Verify function #14

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi,

Line 110 of the verify function uses the signing function to verify, is this correct?

Line 110 const res = await crypto.subtle.sign(importAlgorithm, key, this._utf8ToUint8Array(tokenParts.slice(0, 2).join('.')))

tsndr commented 2 years ago

v1.3.1

We happy now? :)

ghost commented 2 years ago

v1.3.1

We happy now? :)

Yes! Happy camper now. =)