Skip to content

Commit

Permalink
clippy (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
DatGuyJonathan authored Jan 15, 2025
1 parent 07a740c commit db5c857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/framework-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,6 @@ serial_test = "3.1.1"

[build-dependencies]
protobuf-codegen = "3.7.1"

[features]
used_linker = []
2 changes: 1 addition & 1 deletion apps/framework-cli/src/utilities/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn decode_token<T: for<'de> Deserialize<'de>>(
}

pub fn validate_jwt(token: Option<&str>, public_key: &str, issuer: &str, audience: &str) -> bool {
token.map_or(false, |t| {
token.is_some_and(|t| {
let validation = create_validation(issuer, audience);
decode_token::<Claims>(t, public_key, &validation).is_ok()
})
Expand Down

0 comments on commit db5c857

Please sign in to comment.