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
$test = new WC_API_Authentication();
$user = wp_get_current_user();