Function jsonwebtoken::crypto::sign
source · pub fn sign(
message: &[u8],
key: &EncodingKey,
algorithm: Algorithm
) -> Result<String>
Expand description
Take the payload of a JWT, sign it using the algorithm given and return the base64 url safe encoded of the result.
If you just want to encode a JWT, use encode
instead.