tsndr / cloudflare-worker-jwt

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

Fix UTF-8 Character Decoding in Base64 JWT Parsing #59

Closed kira924age closed 8 months ago

kira924age commented 8 months ago

close #58

I have implemented the use of TextDecoder for base64 decoding, which allows for accurate decoding of strings containing multibyte characters like ("🐬").

Fabb111 commented 8 months ago

Just wanted to confirm the issue and as well confirm that this would solve the issue at hand. Code looks good to me. @tsndr maybe you can have a look and merge it after your review.

tsndr commented 8 months ago

Alright, thank you guys for your help with this :)