Skip to main content

encode

Function encode 

Source
pub fn encode(
    key: &SigningKey,
    header: Map<String, Value>,
    claims: &Value,
) -> String
Expand description

Mint a JWT: header gains alg, and kid when the key’s thumbprint is wanted and none is given.