Skip to main content

header_alg

Function header_alg 

Source
pub fn header_alg(token: &str) -> Result<Option<String>, JwtError>
Expand description

Extract the alg from a JWT’s JOSE header without verifying the signature.

Returns Ok(None) if the header has no alg field.