public function handle_auth_requests()
{
global $wp;
if (!empty($_GET['wc-auth-version'])) {
$wp->query_vars['wc-auth-version'] = $_GET['wc-auth-version'];
}
if (!empty($_GET['wc-auth-route'])) {
$wp->query_vars['wc-auth-route'] = $_GET['wc-auth-route'];
}
// wc-auth endpoint requests
if (!empty($wp->query_vars['wc-auth-version']) && !empty($wp->query_vars['wc-auth-route'])) {
$this->auth_endpoint($wp->query_vars['wc-auth-route']);
}
}