Ejemplo n.º 1
0
 public function call($method, $uri, $params = array(), $cookies = array(), $files = array(), $headers = array(), $content = null)
 {
     if (!$this->noTokenNextReq) {
         $headers['HTTP_Authorization'] = 'Bearer ' . $this->token;
     } else {
         $this->noTokenNextReq = false;
         JWTAuth::unsetToken();
     }
     parent::call($method, $uri, $params, $cookies, $files, $headers, $content);
 }