Function require_authenticated

Source
pub async fn require_authenticated(
    req: Request<Body>,
    next: Next,
) -> Result<Response, (StatusCode, Json<ApiResponse<Empty>>)>
Expand description

Basic guard to ensure the request is authenticated.