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
commit 87d26e69ed
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
6 changed files with 89 additions and 38 deletions
src/api/router

View file

@ -48,7 +48,7 @@ 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(),