Skip to content

Commit

Permalink
Merge pull request #4 from 3sidedcube/jwt3
Browse files Browse the repository at this point in the history
Fixes library to work with 3.0.0 final release of JWT
  • Loading branch information
vzsg authored Feb 20, 2019
2 parents 8db43a6 + 155fa23 commit 4cb034b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.1"),
.package(url: "https://github.com/vapor/jwt.git", from: "3.0.0-rc.2.1.1")
.package(url: "https://github.com/vapor/jwt.git", from: "3.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
10 changes: 5 additions & 5 deletions Sources/Ferno/Provider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import Vapor
import JWT

struct Payload: JWTPayload {

func verify(using signer: JWTSigner) throws {
try exp.verifyNotExpired()
}

var iss: IssuerClaim
var scope: String
var aud: String
var exp: ExpirationClaim
var iat: IssuedAtClaim


func verify() throws {
try exp.verify()
}
}

public struct AccessToken {
Expand Down

0 comments on commit 4cb034b

Please sign in to comment.