Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.21 KB

CHANGELOG.md

File metadata and controls

57 lines (34 loc) · 1.21 KB

JSON Web Token Changelog

2.2.0

Enhancements

  • On Apple platforms, JSONWebToken will use the system CommonCrypto where possible.
  • Allow passing additional headers when encoding a JWT.
  • Allow passing leeway parameter for date checks when verifying a JWT.

2.1.0

Enhancements

  • Introduces a new ClaimSet structure. The structure can be returned from decode providing you convenience accessors. encode will now accept a ClaimSet.

    ClaimSet provides methods to manually validate individual claims.

    try claims.validateAudience("example.com")
    try claims.validateIssuer("fuller.li")
    try claims.validateExpiary()
    try claims.validateNotBefore()
    try claims.validateIssuedAt()

2.0.2

Enhancements

  • Adds support for Linux.

2.0.1

This release adds support for Swift 3.0.

Breaking

  • Algorithms now take Data instead of a String. This improves the API allowing you to use keys that cannot be serialised as a String.

    You can easily convert a String to Data such as in the following example:

    .hs256("secret".data(using: .utf8)!)

1.5.0

This release updates the dependency on CryptoSwift to ~> 0.4.0 which adds support for Swift 2.2.