mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Use AtomicU32 in RouteId (#616)
This commit is contained in:
@@ -93,7 +93,7 @@ async fn authorize(Json(payload): Json<AuthPayload>) -> Result<Json<AuthBody>, A
|
||||
let claims = Claims {
|
||||
sub: "[email protected]".to_owned(),
|
||||
company: "ACME".to_owned(),
|
||||
exp: 10000000000,
|
||||
exp: 100000,
|
||||
};
|
||||
// Create the authorization token
|
||||
let token = encode(&Header::default(), &claims, &KEYS.encoding)
|
||||
|
||||
@@ -12,5 +12,6 @@ tracing-subscriber = { version="0.3", features = ["env-filter"] }
|
||||
oauth2 = "4.1"
|
||||
async-session = "3.0.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
reqwest = { version = "0.11", features = ["json"] }
|
||||
# Use Rustls because it makes it easier to cross-compile on CI
|
||||
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls", "json"] }
|
||||
headers = "0.3"
|
||||
|
||||
Reference in New Issue
Block a user