Skip to content

Commit

Permalink
rustfmt ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Sep 27, 2023
1 parent 7a11204 commit f160b03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/auth0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ impl Client {
/// Validate and decode a JWT token using the cached JWK set
pub fn decode_token(&self, kid: String, token: &str) -> Result<TokenData<AuthClaims>, Error> {
if let Some(j) = &self.jwk_cache.get(&kid) {
match j.algorithm {
AlgorithmParameters::RSA(ref rsa) => {
match j.algorithm { AlgorithmParameters::RSA(ref rsa) => {
let decoding_key = DecodingKey::from_rsa_components(&rsa.n, &rsa.e)
.map_err(|_| Error::Auth0)?;
let validation = Validation::new(j.common.algorithm.ok_or(Error::Auth0)?);
Expand Down

0 comments on commit f160b03

Please sign in to comment.