Skip to content

Commit 4cb034b

Browse files
authored
Merge pull request #4 from 3sidedcube/jwt3
Fixes library to work with 3.0.0 final release of JWT
2 parents 8db43a6 + 155fa23 commit 4cb034b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let package = Package(
1515
// Dependencies declare other packages that this package depends on.
1616
// .package(url: /* package url */, from: "1.0.0"),
1717
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.1"),
18-
.package(url: "https://github.com/vapor/jwt.git", from: "3.0.0-rc.2.1.1")
18+
.package(url: "https://github.com/vapor/jwt.git", from: "3.0.0")
1919
],
2020
targets: [
2121
// Targets are the basic building blocks of a package. A target can define a module or a test suite.

Sources/Ferno/Provider.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import Vapor
99
import JWT
1010

1111
struct Payload: JWTPayload {
12+
13+
func verify(using signer: JWTSigner) throws {
14+
try exp.verifyNotExpired()
15+
}
16+
1217
var iss: IssuerClaim
1318
var scope: String
1419
var aud: String
1520
var exp: ExpirationClaim
1621
var iat: IssuedAtClaim
17-
18-
19-
func verify() throws {
20-
try exp.verify()
21-
}
2222
}
2323

2424
public struct AccessToken {

0 commit comments

Comments
 (0)