Add JWT example (#306) (#308)

Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
silvioprog
2021-09-10 17:51:20 +02:00
committed by GitHub
co-authored by Jonas Platte
parent 283bbfbd36
commit 6c13b22cd4
2 changed files with 217 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
[package]
name = "example-jwt"
version = "0.1.0"
edition = "2018"
publish = false
[dependencies]
axum = { path = "../..", features = ["headers"] }
tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
headers = "0.3"
jsonwebtoken = "7"
once_cell = "1.8"