pub fn create_token( secret: &str, agent_id: &str, admin: bool, expiry_hours: u64, ) -> String
Create a signed JWT for the given agent.