Skip to content

Commit

Permalink
Update GoogleJWTPayload to compile with relase version of Vapor/JWT
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejki committed Aug 15, 2018
1 parent a567ebc commit 4a000e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.swift
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
Expand Down
6 changes: 3 additions & 3 deletions Sources/Imperial/Services/GoogleJWT/GoogleJWTPayload.swift
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit 4a000e3

Please sign in to comment.