Releases: vapor/jwt
5.1.1 - Correctly conform `JWTError` to `AbortError`
What's Changed
Correctly conform JWTError
to AbortError
by @0xTim in #162
Make sure
JWTError
now conforms toAbortError
so error messages are returned as expected (and as in v4).Fixes the token used in the tests so the tests now pass and add back the check for
expired
.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 5.1.0...5.1.1
5.1.0 - Add support for Firebase Authentication
What's Changed
Add support for Firebase Authentication by @petrpavlik in #160
Add support for decoding Firebase Authentication JWT tokens.
- Provide project id when configuring your Vapor application
app.jwt.firebaseAuth.applicationIdentifier = firebaseProjectId
- Verify the token on a request
let token = try await req.jwt.firebaseAuth.verify() let email = token.email let name = token.name let avatarUrl = token.avatarUrl // ...
This patch was released by @ptoffy
Full Changelog: 5.0.0...5.1.0
5.0.0
What's Changed
- Update SIWA JWT by @0xTim in #150
- Update README by @ptoffy in #151
- Update to JWTKit v5 by @ptoffy in #149
- update CI by @JaapWijnen in #153
- Update to JWTKit Beta 2 by @ptoffy in #152
- Update JWTKit version by @ptoffy in #154
- Update JWTKit and Vapor versions by @ptoffy in #155
- Update JWTKit by @ptoffy in #156
- Allow configuration of URIs in JWT helpers by @andtie in #136
- Update for JWTKit v5 by @ptoffy in #157
New Contributors
Full Changelog: 4.2.2...5.0.0
5.0.0 Release Candidate 1
5.0.0 Beta 4
What's Changed
Full Changelog: 5.0.0-beta.3...5.0.0-beta.4
5.0.0 Beta 3
5.0.0 Beta 2
What's Changed
- update CI by @JaapWijnen in #153
- Update to JWTKit Beta 2 by @ptoffy in #152
Full Changelog: 5.0.0-beta.1...5.0.0-beta.2
5.0.0 Beta 1
First beta release of major version 5.
Add missing platform specifiers
This patch was authored and released by @gwynne.
JWTKit and Vapor both already have the additional platforms.
Add `@discardableResult` attribute to `verify(as:)` functions
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)