Skip to content

Makes the 'typ' header truly optionnal #418

Closed
@olinox14

Description

@olinox14

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions