tsndr / cloudflare-worker-jwt

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

Can't verify external tokens #15

Closed badoge closed 2 years ago

badoge commented 2 years ago

jwt.verify always returns false when I try to verify tokens I receive from Twitch. Also when I try to send a request to the Twitch API it returns an error saying it could not verify the token generated by jwt.sign

I think Twitch is expecting a token signed with a base64 encoded secret but when I decode the tokens generated by jwt.sign it doesn't seem be using a base64 encoded secret.

tsndr commented 2 years ago

Should be fixed with v1.3.1.