Skip to content

Commit ead1eb9

Browse files
authored
Merge pull request #35 from nuclearcat/fix-jwt-aud
jwt: Fix breakage on unified token aud claim
2 parents 3d85a35 + f01548e commit ead1eb9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/storjwt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fn verify_with_key_str(
1717
let mut validation = Validation::default();
1818
validation.required_spec_claims.clear();
1919
validation.validate_exp = false;
20+
validation.validate_aud = false;
2021
let token_data = decode::<Claims>(token_str, &key, &validation)?;
2122
let mut claims = BTreeMap::new();
2223
claims.insert("email".to_string(), token_data.claims.email);

0 commit comments

Comments
 (0)