Skip to content

Commit

Permalink
fix: make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-iskryzhytskyi committed Sep 23, 2024
1 parent 26bbdd1 commit 5c78a61
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions affinidi-messaging-mediator/src/common/jwt_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ where
.extract::<TypedHeader<Authorization<Bearer>>>()
.await
.map_err(|_| {
warn!(
"No Authorization Bearer header in request!"
);
warn!("No Authorization Bearer header in request!");
AuthError::MissingCredentials
})?;

Expand All @@ -129,11 +127,7 @@ where
match jsonwebtoken::decode::<SessionClaims>(bearer.token(), decoding_key, &validation) {
Ok(token_data) => token_data,
Err(err) => {
event!(
Level::WARN,
"Decoding JWT failed {:?}",
err
);
event!(Level::WARN, "Decoding JWT failed {:?}", err);
return Err(AuthError::InvalidToken);
}
}
Expand Down

0 comments on commit 5c78a61

Please sign in to comment.