Skip to main content

encode_hs256

Function encode_hs256 

Source
pub fn encode_hs256<T>(claims: &T, secret: &[u8]) -> Result<String, JwtError>
where T: Serialize,
Expand description

Encodes serializable claims as an HS256 JSON Web Token.