pub fn sign(
    message: &str,
    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.