Skip to content

Commit 91486bc

Browse files
committed
examples: Update to jsonwebtoken 10
1 parent 29be912 commit 91486bc

File tree

3 files changed

+45
-66
lines changed

3 files changed

+45
-66
lines changed

Cargo.lock

Lines changed: 43 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/jwt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish = false
77
[dependencies]
88
axum = { path = "../../axum" }
99
axum-extra = { path = "../../axum-extra", features = ["typed-header"] }
10-
jsonwebtoken = "9.3"
10+
jsonwebtoken = { version = "10", features = ["aws_lc_rs"] }
1111
serde = { version = "1.0", features = ["derive"] }
1212
serde_json = "1.0"
1313
tokio = { version = "1.0", features = ["full"] }

examples/jwt/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl Keys {
170170
}
171171
}
172172

173-
#[derive(Debug, Serialize, Deserialize)]
173+
#[derive(Debug, Clone, Serialize, Deserialize)]
174174
struct Claims {
175175
sub: String,
176176
company: String,

0 commit comments

Comments
 (0)