diff --git a/src/infrastructure/auth.rs b/src/infrastructure/auth.rs index 110038c..bf8538a 100644 --- a/src/infrastructure/auth.rs +++ b/src/infrastructure/auth.rs @@ -214,7 +214,7 @@ pub async fn auth_callback( let client = reqwest::Client::new(); let token_resp = client - .post(&config.token_endpoint()) + .post(config.token_endpoint()) .form(&[ ("grant_type", "authorization_code"), ("client_id", &config.client_id), @@ -237,7 +237,7 @@ pub async fn auth_callback( // --- Fetch userinfo --- let userinfo: UserinfoResponse = client - .get(&config.userinfo_endpoint()) + .get(config.userinfo_endpoint()) .bearer_auth(&tokens.access_token) .send() .await diff --git a/src/infrastructure/state.rs b/src/infrastructure/state.rs index f83b157..89d77bc 100644 --- a/src/infrastructure/state.rs +++ b/src/infrastructure/state.rs @@ -1,11 +1,7 @@ -use std::{ - ops::{Deref, DerefMut}, - sync::Arc, -}; +use std::{ops::Deref, sync::Arc}; use axum::extract::FromRequestParts; use serde::{Deserialize, Serialize}; -use tracing::debug; #[derive(Debug, Clone)] pub struct UserState(Arc);