Skip to main content

sign

Function sign 

Source
pub fn sign<T>(claims: &T, key_b64: &str) -> Result<String, AuthenticationError>
where T: Serialize,
Expand description

ยงErrors

Returns an error when the key cannot be decoded or the claims cannot be serialized.