Function jwtk::sign [−][src]
pub fn sign<ExtraClaims: Serialize>(
claims: &mut HeaderAndClaims<ExtraClaims>,
k: &dyn SigningKey
) -> Result<String>
Expand description
Encode and sign this header and claims with the signing key.
The alg
field in header is automatically set.
Returns a signed JWT.