Swiftpack.co - vapor/jwt as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vapor.
vapor/jwt 4.2.1
Vapor JWT provider
⭐️ 293
🕓 12 weeks ago
macOS linux macOS iOS
.package(url: "https://github.com/vapor/jwt.git", from: "4.2.1")

JWTKit

Documentation Team Chat MIT License Continuous Integration Swift 5.2


Original author

GitHub

link
Stars: 293
Last commit: 12 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Dependencies

Release Notes

Add `@discardableResult` attribute to `verify(as:)` functions
12 weeks ago
This patch was authored by @jiahan-wu and released by @0xTim.

Marks JWT's verify(as:) functions with @discardableResult so you can verify then without reading the contents in a clean way. For example

let _ = try req.jwt.verify(as: Payload.self)

Can become:

try req.jwt.verify(as: Payload.self)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics