Closed
Description
JWT specifications statues that the 'typ' header is optional. However, the JWT::encode
method automatically add the header, and doesn't provide any option to remove it.
I'm currently stuck because, for an unknown reason, the Mercure hub (written in GO and using jwt-go to parse the jwt) throw an 'invalid signature' error whenever the 'typ' header is added. I submitted an issue on their github too, but I still think it could be useful to be able to completely override the header of a JWT.
Metadata
Metadata
Assignees
Labels
No labels