Skip to main content

sign_hs256_claim

Function sign_hs256_claim 

Source
fn sign_hs256_claim<T: Serialize>(
    claim: &T,
    key: &JwtKey,
) -> Result<String, Error>
Expand description

Signs any serializable claim payload as HS256 using the shared JWT secret.