Skip to main content

decode_with_any_key_lenient

Function decode_with_any_key_lenient 

Source
pub fn decode_with_any_key_lenient(
    token: &str,
    candidates: &[VerifyingKey],
    expected_aud: Option<&str>,
) -> Result<Claims, JwtError>
Expand description

Lenient-audience twin of decode_with_any_key. This remains restricted to kid-less JWTs; only the absent-audience behavior differs.