Function jsonwebtoken::sign
[−]
[src]
pub fn sign(data: &str, secret: &[u8], algorithm: Algorithm) -> String
Take the payload of a JWT and sign it using the algorithm given. Returns the base64 url safe encoded of the hmac result