Skip to content

Commit

Permalink
Merge pull request #481 from profunktor/update-doc
Browse files Browse the repository at this point in the history
Update doc to not use deprecated methods.
  • Loading branch information
froth authored Nov 4, 2024
2 parents 020d487 + ede19d8 commit 5f65d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ case class AuthUser(id: Long, name: String)
val authenticate: JwtToken => JwtClaim => IO[Option[AuthUser]] =
token => claim => AuthUser(123L, "joe").some.pure[IO]

val jwtAuth = JwtAuth.hmac("53cr3t", JwtAlgorithm.HS256)
val jwtAuth = JwtAuth.hmac(Array('5','3','c','r','3','t'), JwtAlgorithm.HS256)
val middleware = JwtAuthMiddleware[IO, AuthUser](jwtAuth, authenticate)

val routes: AuthedRoutes[AuthUser, IO] = ???
Expand Down
2 changes: 1 addition & 1 deletion site/docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ case class AuthUser(id: Long, name: String)
val authenticate: JwtToken => JwtClaim => IO[Option[AuthUser]] =
token => claim => AuthUser(123L, "joe").some.pure[IO]

val jwtAuth = JwtAuth.hmac("53cr3t", JwtAlgorithm.HS256)
val jwtAuth = JwtAuth.hmac(Array('5','3','c','r','3','t'), JwtAlgorithm.HS256)
val middleware = JwtAuthMiddleware[IO, AuthUser](jwtAuth, authenticate)

val routes: AuthedRoutes[AuthUser, IO] = null
Expand Down

0 comments on commit 5f65d35

Please sign in to comment.