Skip to main content

decode_hs256

Function decode_hs256 

Source
pub fn decode_hs256<T: for<'de> Deserialize<'de>>(
    token: &str,
    secret: &str,
    issuer: Option<&str>,
    audience: Option<&str>,
) -> Result<T, JwtError>
Expand description

Decode and validate an HS256 JWT, returning typed claims.