pub fn async_before_hook_handler<F, Fut>(
handler: F,
) -> impl for<'a> Fn(&'a AuthContext, ApiRequest) -> PluginBeforeHookFuture<'a> + Send + Sync + Clone + 'staticwhere
F: Fn(AuthContext, ApiRequest) -> Fut + Send + Sync + Clone + 'static,
Fut: Future<Output = Result<PluginBeforeHookAction, RustAuthError>> + Send + 'static,Expand description
Wraps an async before-hook handler so plugin authors do not need Box::pin.