From ede19d8acc5fcfb2e7559a39d986d6bbe6d78bb2 Mon Sep 17 00:00:00 2001 From: Frederick Roth Date: Mon, 4 Nov 2024 10:42:09 +0100 Subject: [PATCH] Update doc to not use deprecated methods. --- README.md | 2 +- site/docs/example.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff74edd..89dafc6 100644 --- a/README.md +++ b/README.md @@ -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] = ??? diff --git a/site/docs/example.md b/site/docs/example.md index b0fa59f..0e18b51 100644 --- a/site/docs/example.md +++ b/site/docs/example.md @@ -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