pub type KeyFunc = dyn Fn(&Token) -> Result<Key, Box<dyn Error + Send + Sync>> + Send + Sync;
KeyFunc resolves the signing key for the provided token during parsing.