Skip to main content

auth_middleware

Function auth_middleware 

Source
pub async fn auth_middleware(
    __arg0: State<Arc<AppState>>,
    request: Request<Body>,
    next: Next,
) -> Response
Expand description

Middleware that enforces JWT auth when a secret is configured.