Function create_token

Source
pub fn create_token(
    subject: String,
    resource: String,
    key: KeyPair,
) -> Result<String, Box<dyn Error>>