pub fn encode<T: Serialize>(claims: &T, secret: &[u8]) -> Result<String>
Sign claims as an HS256 token
claims