Skip to main content

require_auth

Function require_auth 

Source
pub async fn require_auth(
    __arg0: State<SharedAuth>,
    request: Request,
    next: Next,
) -> Response
Expand description

Axum middleware that enforces authentication on every JMAP route it guards. Successful authentication attaches a Principal to the request extensions; failure short-circuits the chain with a 401.