pub(crate) async fn require_token_naming(
state: &AppState,
caller: Option<&Caller>,
site: ActorSite,
actor: &str,
) -> Result<(), String>Expand description
Like require_actor, but for a route that acts for an agent and has no
meaning without one: the request must carry the token of the agent it
names. A request with no token (or one this srv didn’t mint) is refused
instead of being taken at its word, and so is one whose token names another
agent.