What's Changed
- Change to non-optional function String <-> Data by @zunda-pixel in #156
- Add initialisers to vendor identity tokens by @ptoffy in #150
- 🚨Update verify function parameter to use some JWTAlgorithm by @ptoffy in #152
- 🚨Generic key addition by @ptoffy in #160
- 🚨Make JWTError Sendable by @ptoffy in #162
- 🚨Update swift version and readme for beta 3 by @ptoffy #164
Breaking Changes
- The minimum supported Swift version is now 5.10
- All algorithm specific key addition functions of
JWTKeyCollectionhave been updated to be algorithm agnostic, for example theJWTKeyCollection.addHS256(key: ...)has been renamed toJWTKeyCollection.addHMAC(key: ..., digestAlgorithm: .sha256)etc. - The
JWTPayload'sverifyfunction now takessome JWTAlgorithminstead ofany JWTAlgorithm JWTError.malformedTokenwas removed in favour ofJWTError.malformedToken(reason:)
Full Changelog: 5.0.0-beta.2...5.0.0-beta.3