github vapor/jwt-kit 4.0.0-rc.1.5
Add typ, cty fields in the JWT header

latest releases: 5.7.1, 5.7.0, 5.6.0...
pre-release6 years ago
This patch was authored by @Maxim-Inv and released by @tanner0101.

Adds typ and cty fields to the JWT header (#25, fixes #5).

  • Add typ header as parameter making "JWT" the default.

  • Allow setting cty during JWT signing.

let signer = JWTSigner.hs256(key: keyData)`
let token = try signer.sign(payload, cty: "twilio-fpa;v=1")

Don't miss a new jwt-kit release

NewReleases is sending notifications on new releases.