corsac-dart / jwt

Lightweight implementation of JSON Web Tokens (JWT)
BSD 2-Clause "Simplified" License
45 stars 28 forks source link

KeyId "kid" is missing #16

Closed SaadArdati closed 6 days ago

SaadArdati commented 4 years ago

There is no way to either check the "kid" header nor to set it. In fact, headers seem to be closed off outside of just readonly

pulyaevskiy commented 6 days ago

There is now setHeader which allows setting any custom header, with only exceptions of alg and kid, which can be set only by the Signer used.

This will land in 1.0.0.