"Unexpected token algorithm" error when validating CloudFlare's JWT
petersondmg opened this issue · 2 comments
petersondmg commented
Hello,
I'm trying to validate Cloudflare Zero Trust JWT, but I'm getting the error "jwt: unexpected token algorithm". Looking at the code, I think the problem is related to this line the compares the header, since the JWT from CF doesn't have the "typ" field.
The line:
Line 169 in d03e03a
Cloudflare doc: https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/
Thank you.
ThinhNX commented
Have you fixed this bug yet?
Im facing the same issue right now with an offline server and I dont have any solutions for it.