Skip to content

Commit

Permalink
refactor(auth/jwt): use given instead of implicit val
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Oct 18, 2024
1 parent e62cf88 commit 901663d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/scala/net/yoshinorin/qualtet/auth/Jwt.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ final case class JwtClaim(
)

object JwtClaim {
// TODO: use `given`
// given codecJwtClaim: JsonValueCodec[JwtClaim] = JsonCodecMaker.make
implicit val codecJwtClaim: JsonValueCodec[JwtClaim] = JsonCodecMaker.make
given codecJwtClaim: JsonValueCodec[JwtClaim] = JsonCodecMaker.make
}

class Jwt(config: JwtConfig, algorithm: JwtAsymmetricAlgorithm, keyPair: KeyPair, signature: Signature) {

import JwtClaim.*
import JwtClaim.codecJwtClaim

private val logger = LoggerFactory.getLogger(this.getClass)

Expand Down

0 comments on commit 901663d

Please sign in to comment.