Skip to main content

encode_hs256

Function encode_hs256 

Source
pub fn encode_hs256(
    claims: &impl Serialize,
    secret: &str,
) -> Result<String, JwtError>
Expand description

Encode a claims struct as an HS256 JWT.