#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use http::HeaderMap;
use jsonrpsee_http_client::HttpResponse;
mod auth_client_layer;
mod auth_layer;
mod compression_layer;
mod jwt_validator;
pub use auth_layer::{AuthService, ResponseFuture};
pub use compression_layer::CompressionLayer;
pub use alloy_rpc_types_engine::{Claims, JwtError, JwtSecret};
pub use auth_client_layer::{secret_to_bearer_header, AuthClientLayer, AuthClientService};
pub use auth_layer::AuthLayer;
pub use jwt_validator::JwtAuthValidator;
pub trait AuthValidator {
fn validate(&self, headers: &HeaderMap) -> Result<(), HttpResponse>;
}