Skip to main content

decode_compact

Function decode_compact 

Source
pub fn decode_compact(
    token: &str,
) -> Result<(JwtHeader, JwtClaims, Vec<u8>), JwtError>
Expand description

Decode a compact JWT into (header, claims, signature_bytes).

Does NOT verify the signature — use verify_compact for that. This helper is primarily for test round-tripping and for negative-test assertions (e.g., “the minted token has the expected alg header”).