pub fn create_token_with_time( subject: String, resource: String, key: KeyPair, time_config: TokenTimeConfig, ) -> Result<String, Box<dyn Error>>