kataras / jwt

A fast and simple JWT implementation for Go
MIT License
204 stars 19 forks source link

Possible fix for CompareHeader function failure #10

Closed ghost closed 2 years ago

ghost commented 3 years ago

This PR includes a workaround for the issue outlined in #9 .

kataras commented 2 years ago

Hello @jwixel, thanks for that but there is no requirement to use json decoder there. If you want to do so, you can already customize how the header is compared (see the headerDecoded[]byte): https://github.com/kataras/jwt/blob/da1ee79b9db12bd50748fee8a6e8047014414501/_examples/basic/rs512-verify/main.go#L21-L28