Skip to content

Commit

Permalink
fix: Do not log on error level when invalid credentials are provided (D…
Browse files Browse the repository at this point in the history
  • Loading branch information
BalduinLandolt authored Aug 26, 2024
1 parent ae8f44a commit c7e9451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ final case class AuthenticatorLive(
override def authenticate(jwtToken: String): IO[AuthenticatorError, User] = for {
_ <- ZIO.fail(BadCredentials).when(invalidTokens.contains(jwtToken))
userIri <-
jwtService.extractUserIriFromToken(jwtToken).some.map(UserIri.from).right.logError.orElseFail(BadCredentials)
jwtService.extractUserIriFromToken(jwtToken).logError.some.map(UserIri.from).right.orElseFail(BadCredentials)
user <- getUserByIri(userIri)
} yield user

Expand Down

0 comments on commit c7e9451

Please sign in to comment.