Function jsonwebtoken::encode [] [src]

pub fn encode<T: Part>(header: Header, claims: &T, secret: &[u8]) -> Result<StringError>

Encode the claims passed and sign the payload using the algorithm from the header and the secret