diff options
Diffstat (limited to 'src/login.rs')
-rw-r--r-- | src/login.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login.rs b/src/login.rs index bfa84b3..e105bcc 100644 --- a/src/login.rs +++ b/src/login.rs @@ -48,7 +48,7 @@ struct LoginForm { async fn post( Host(host): Host, mut cookies: SignedCookieJar, - State(http): State<reqwest::Client>, + State(http): State<reqwest_middleware::ClientWithMiddleware>, Form(form): Form<LoginForm>, ) -> axum::response::Response { let code_verifier = kittybox_indieauth::PKCEVerifier::new(); @@ -204,7 +204,7 @@ async fn callback( Host(host): Host, Query(result): Query<AuthorizationResponse>, cookie_jar: SignedCookieJar, - State(http): State<reqwest::Client>, + State(http): State<reqwest_middleware::ClientWithMiddleware>, State(session_store): State<crate::SessionStore>, ) -> axum::response::Response { let client_id: url::Url = format!("https://{}/.kittybox/login/client_metadata", host).parse().unwrap(); @@ -355,7 +355,7 @@ pub fn router<St, S>() -> axum::routing::Router<St> where St: Clone + Send + Sync + 'static, cookie::Key: FromRef<St>, - reqwest::Client: FromRef<St>, + reqwest_middleware::ClientWithMiddleware: FromRef<St>, crate::SessionStore: FromRef<St>, S: Storage + FromRef<St> + Send + Sync + 'static, { |