diff --git a/backend/sync_server/src/server/auth.rs b/backend/sync_server/src/server/auth.rs index 7cd0b26b..3a1f5939 100644 --- a/backend/sync_server/src/server/auth.rs +++ b/backend/sync_server/src/server/auth.rs @@ -17,7 +17,6 @@ use crate::{ errors::{SyncServerError, permission_denied_error, unauthenticated_error}, }; - pub async fn auth_middleware( State(state): State, Path(path_params): Path>, @@ -37,11 +36,7 @@ pub async fn auth_middleware( Ok(next.run(req).await) } -pub fn auth( - state: &AppState, - token: &str, - vault_id: &VaultId, -) -> Result { +pub fn auth(state: &AppState, token: &str, vault_id: &VaultId) -> Result { let user = state .config .users