Function jsonwebtoken::encode
[−]
[src]
pub fn encode<T: Part, B: AsRef<[u8]>>(claims: &T, secret: B, algorithm: Algorithm) -> Result<String, Error>
Encode the claims passed and sign the payload using the algorithm and the secret