This repository was archived by the owner on Aug 15, 2019. It is now read-only.
NOTE: I no longer maintain this fork as my own projects have migrated to SwiftJWT. You are welcome to continue to use it, but be advised that if something breaks, I’m highly unlikely to fix it.
Fixed
- Package.swift has been modified to account for the coming inclusion of CommonCrypto as an importable module on Apple platforms in Swift 4.2. (This allows for builds using Xcode 10/Swift 4.2 and later.)
- JWT encoding unit tests were modified to account for inconsistent
Dictionary
ordering. - A Swift 4 warning regarding the deprecation of
deallocate(capacity:)
has been resolved. - A Swift 4 warning regarding the deprecation of
String.characters
has been resolved.
Changed
- Linux builds now use CryptoSwift 0.10.0.
Deprecated
ClaimSet.validateExpiary(leeway:)
has been deprecated; the method name is misspelled. Please instead useClaimSet.validateExpiry(leeway:)
.
Removed
- The deprecated
JWT.encode
andJWT.decode
methods have been removed, which should make using the package more pleasant as implicit typing should work without warnings.