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.
Unclaimed project
Are you a maintainer of JSONWebToken.swift? Claim this project to take control of your public changelog and roadmap.
Changelog
Swift implementation of JSON Web Token (JWT).
Last updated almost 5 years ago
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....
This release adds support for Swift 3.0.
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)!)
This release adds support for Swift 3.0.