What's New

Add `@discardableResult` attribute to `verify(as:)` functions

2022-07-08T23:59:05Z
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)

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

Last updated: Mon Jan 30 2023 09:24:16 GMT-0500 (GMT-05:00)