pub fn decode_with_federation_candidates(
token: &str,
candidates: &[FederationKey],
expected_aud: Option<&str>,
) -> Result<Claims, JwtError>Expand description
Verify a federation JWT without losing its JWKS kid binding.
A named token must have exactly one candidate carrying that name and is verified only with that key. A kid-less token may try every published Ed25519 candidate, each through full pinned-algorithm verification.