diff --git a/Package.swift b/Package.swift old mode 100644 new mode 100755 index 78fabf7..6071817 --- 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 180a84a..c402d53 --- 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() } }