WC_Auth::handle_auth_requests PHP Method

handle_auth_requests() public method

Handle auth requests.
Since: 2.4.0
        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']);
            }
        }