chore: Migrate to axum 0.8

Co-authored-by: dasha_uwu
This commit is contained in:
Jade Ellis
2025-04-28 22:39:32 +01:00
committed by timedout
parent 31e2195e56
commit 46907e3dce
5 changed files with 904 additions and 1054 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ pub(super) async fn auth(
json_body: Option<&CanonicalJsonValue>,
metadata: &Metadata,
) -> Result<Auth> {
let bearer: Option<TypedHeader<Authorization<Bearer>>> = request.parts.extract().await?;
let bearer: Option<TypedHeader<Authorization<Bearer>>> =
request.parts.extract().await.unwrap_or(None);
let token = match &bearer {
| Some(TypedHeader(Authorization(bearer))) => Some(bearer.token()),
| None => request.query.access_token.as_deref(),