examples: Update to jsonwebtoken 10 (#3520)

This commit is contained in:
tottoto
2025-10-07 13:19:27 -04:00
committed by GitHub
parent 29be91240d
commit f9c0e7069a
3 changed files with 45 additions and 66 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ publish = false
[dependencies]
axum = { path = "../../axum" }
axum-extra = { path = "../../axum-extra", features = ["typed-header"] }
jsonwebtoken = "9.3"
jsonwebtoken = { version = "10", features = ["aws_lc_rs"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.0", features = ["full"] }
+1 -1
View File
@@ -170,7 +170,7 @@ impl Keys {
}
}
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
struct Claims {
sub: String,
company: String,