pub fn encode_hs256( claims: &impl Serialize, secret: &str, ) -> Result<String, JwtError>
Encode a claims struct as an HS256 JWT.