Skip to main content

verify_compact

Function verify_compact 

Source
pub fn verify_compact(
    token: &str,
    vkey: &AnyVerifyingKey,
) -> Result<(JwtHeader, JwtClaims), JwtError>
Expand description

Verify a compact JWT against the given verifying key. Does NOT check claim values (exp/aud/lxm) — that is the labeler’s job in production, or the stage’s assertion job in tests. Only verifies the signature.