Skip to content

Commit

Permalink
Added a public initializer to Request.JWT (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
grosch committed May 24, 2020
1 parent 8c1681e commit 245dc75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/JWT/Request+JWT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ extension Request {
public struct JWT {
let request: Request

public init(request: Request) {
self.request = request
}

public func verify<Payload>(as payload: Payload.Type = Payload.self) throws -> Payload
where Payload: JWTPayload
{
Expand Down

0 comments on commit 245dc75

Please sign in to comment.