pub(crate) async fn require_token_actor(
state: &AppState,
caller: Option<&Caller>,
site: ActorSite,
claimed: &str,
) -> Result<(String, String), ApiError>Expand description
For a route that records who acted: the agent the request’s token names, as
(slug, uid). claimed is the name the request gives for itself, and an
empty one leaves the token to decide alone. Refused without a token, and
when claimed is not a name only that agent answers to, so what is recorded
is what the server proved and never a body field.