/**
  * Adds client id and signature to the User object array
  *
  * @return array
  */
 protected function signJsConnect()
 {
     $queryArray = array_merge($this->user->toArray(), $this->properties);
     ksort($queryArray);
     $queryString = http_build_query($queryArray, null, '&');
     $signature = md5($queryString . $this->config->getSecret());
     $queryArray['client_id'] = $this->config->getClientID();
     $queryArray['signature'] = $signature;
     return $queryArray;
 }