use crate::{Result, user::UserInfo};
#[cfg_attr(feature = "mockall", mockall::automock)]
#[async_trait::async_trait]
pub trait ApiAuth: Sync + Send + std::fmt::Debug {
async fn authorize(&self, authorization_header: http::HeaderValue) -> Result<Option<UserInfo>>;
}