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