pub async fn api_token_filter(
    context: SharedContext
) -> impl Filter<Extract = (), Error = Rejection> + Clone
Expand description

A warp filter that checks authorization through API tokens. The header API_TOKEN_HEADER should be present and valid otherwise the request is rejected.