I built custom API that work great, but I can't authenticate them, they return results without checking for keys. I've developed an admin key and secret key.
This solution is working but I want to know the standard way of authentication custom API
require_once '/woocommerce/includes/legacy/api/v1/class-wc-api-authentication.php';
$test = new WC_API_Authentication();
$user = wp_get_current_user();
$test->authenticate($user);