Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Oct 18, 2019
1 parent 25ce3fa commit b39263b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/src/main/tut/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import org.http4s._
case class AuthUser(id: Long, name: String)
val authenticate: JwtClaim => IO[Option[AuthUser]] =
claim => AuthUser(123L, "joe").some.pure[IO]
val authenticate: JwtToken => JwtClaim => IO[Option[AuthUser]] =
token => claim => AuthUser(123L, "joe").some.pure[IO]
val jwtAuth = JwtAuth(JwtSecretKey("53cr3t"), JwtAlgorithm.HS256)
val middleware = JwtAuthMiddleware[IO, AuthUser](jwtAuth, authenticate)
Expand Down

0 comments on commit b39263b

Please sign in to comment.