tsndr / cloudflare-worker-jwt

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

Fix unicode payload signing #63

Closed dlackty closed 7 months ago

dlackty commented 8 months ago

In the recent version of cloudflare-worker-jwt (specifically, after commit 6b3192b4b91cd5880c77d1ded75a1a9550d5d597), if we encode payload with any Unicode character, it will throw InvalidCharacterError: Invalid character.

tsndr commented 7 months ago

Than you for your help with this :)