protected function extractToken()
    {
        if ($this->request->input('token') === false) {
            if (!$this->request->getHeader('X-JS-CLIENTS-TOKEN')) {
                return 'token';
            }

            return $this->request->getHeader('X-JS-CLIENTS-TOKEN');
        }

        return $this->request->input('token');
    }