pub fn create_auth_endpoint<F, Fut>(
path: impl Into<String>,
method: Method,
options: AuthEndpointOptions,
handler: F,
) -> AsyncAuthEndpointwhere
F: Fn(AuthContext, ApiRequest) -> Fut + Send + Sync + Clone + 'static,
Fut: Future<Output = Result<ApiResponse, RustAuthError>> + Send + 'static,Expand description
Defines an async auth endpoint without manual Box::pin.