Skip to content

Commit a0a1fdd

Browse files
authored
bump jsonwebtoken to 9.3.0 and handle breaking changes (#73)
* bump jsonwebtoken to 9.3.0 and handle breaking changes * bump patch version
1 parent c7234bb commit a0a1fdd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "propelauth"
3-
version = "0.23.0"
3+
version = "0.23.1"
44
authors = ["support@propelauth.com"]
55
description = "A Rust crate for managing authentication and authorization with support for multi-tenant / B2B products, powered by PropelAuth"
66
keywords = ["authentication", "auth", "authorization", "b2b", "tenant"]
@@ -16,7 +16,7 @@ axum_06 = { package = "axum", version = "^0.6", optional = true }
1616
axum_07 = { package = "axum", version = "^0.7", optional = true }
1717
axum_08 = { package = "axum", version = "^0.8", optional = true }
1818
chrono = "0.4.39"
19-
jsonwebtoken = "8.3.0"
19+
jsonwebtoken = "9.3.0"
2020
serde = "^1.0"
2121
serde_derive = "^1.0"
2222
serde_json = "^1.0"

src/propelauth/token.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ impl TokenService<'_> {
137137

138138
let mut validation = Validation::new(Algorithm::RS256);
139139
validation.set_issuer(&[self.issuer]);
140+
validation.validate_aud = false;
140141

141142
let decoded_user =
142143
decode::<DecodedUserFromToken>(&bearer_token, &decoding_key, &validation)

0 commit comments

Comments
 (0)