mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-25 00:00:23 +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)
|
||||
|
||||
Reference in New Issue
Block a user