pub fn decode_with_any_key(
token: &str,
candidates: &[VerifyingKey],
expected_aud: Option<&str>,
) -> Result<Claims, JwtError>Expand description
Try every supplied Ed25519 key for a JWT that has no kid.
Candidate verification is intentionally unavailable to named tokens: under
invariant I2, a token declaring kid=X must be resolved and verified only
with key X. Each kid-less candidate receives a complete verification,
including the pinned EdDSA algorithm and all claim checks.