File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ let package = Package(
15
15
// Dependencies declare other packages that this package depends on.
16
16
// .package(url: /* package url */, from: "1.0.0"),
17
17
. 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 " )
19
19
] ,
20
20
targets: [
21
21
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ import Vapor
9
9
import JWT
10
10
11
11
struct Payload : JWTPayload {
12
+
13
+ func verify( using signer: JWTSigner ) throws {
14
+ try exp. verifyNotExpired ( )
15
+ }
16
+
12
17
var iss : IssuerClaim
13
18
var scope : String
14
19
var aud : String
15
20
var exp : ExpirationClaim
16
21
var iat : IssuedAtClaim
17
-
18
-
19
- func verify( ) throws {
20
- try exp. verify ( )
21
- }
22
22
}
23
23
24
24
public struct AccessToken {
You can’t perform that action at this time.
0 commit comments