diff --git a/webapi/src/main/scala/org/knora/webapi/slice/security/Authenticator.scala b/webapi/src/main/scala/org/knora/webapi/slice/security/Authenticator.scala index cd215b8a45..aaf58b1b21 100644 --- a/webapi/src/main/scala/org/knora/webapi/slice/security/Authenticator.scala +++ b/webapi/src/main/scala/org/knora/webapi/slice/security/Authenticator.scala @@ -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