pub fn header_alg(token: &str) -> Result<Option<String>, JwtError>
Extract the alg from a JWT’s JOSE header without verifying the signature.
alg
Returns Ok(None) if the header has no alg field.
Ok(None)