pub async fn validate_api_token(
infra: &InfraContext<'_>,
token: &str,
) -> Result<(), Error>Expand description
Verify that token is still accepted by the site’s backend.
Lightweight probe the CLI calls before kicking off a long-running
operation that would otherwise fail mid-flight (e.g. a multi-node
power transition followed by a poll loop). Does not return any
claim from the token — for that, decode it locally with
jwt_ops instead.
§Errors
Whatever
[AuthenticationTrait::validate_api_token] returns —
typically Unauthorized for an expired or revoked token.