From 4a000e3fdf227e4dcb09be97f42a89c7e1eab120 Mon Sep 17 00:00:00 2001 From: Petr Hejkal Date: Wed, 15 Aug 2018 15:48:19 +0200 Subject: [PATCH] Update GoogleJWTPayload to compile with relase version of Vapor/JWT --- Package.swift | 2 +- Sources/Imperial/Services/GoogleJWT/GoogleJWTPayload.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 Package.swift mode change 100644 => 100755 Sources/Imperial/Services/GoogleJWT/GoogleJWTPayload.swift diff --git a/Package.swift b/Package.swift old mode 100644 new mode 100755 index 78fabf79..6071817c --- a/Package.swift +++ b/Package.swift @@ -9,7 +9,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"), - .package(url: "https://github.com/vapor/jwt.git", from: "3.0.0-rc") + .package(url: "https://github.com/vapor/jwt.git", from: "3.0.0") ], targets: [ .target(name: "Imperial", dependencies: ["Vapor", "JWT"]), diff --git a/Sources/Imperial/Services/GoogleJWT/GoogleJWTPayload.swift b/Sources/Imperial/Services/GoogleJWT/GoogleJWTPayload.swift old mode 100644 new mode 100755 index 180a84a6..c402d533 --- a/Sources/Imperial/Services/GoogleJWT/GoogleJWTPayload.swift +++ b/Sources/Imperial/Services/GoogleJWT/GoogleJWTPayload.swift @@ -7,8 +7,8 @@ public struct GoogleJWTPayload: JWTPayload { public var aud: AudienceClaim public var iat: IssuedAtClaim public var exp: ExpirationClaim - - public func verify() throws { - try exp.verify() + + public func verify(using signer: JWTSigner) throws { + try exp.verifyNotExpired() } }