public function authenticateSocial($authResponse)
	{
		$this->debug->groupCollapsed(__METHOD__);
		$return = false;
		$providerkey = $authResponse['auth']['uid'];
		$query = 'SELECT * FROM `user_social` WHERE `providerkey` = '.$this->db->quoteValue($providerkey);
		$users = $this->db->query($query)[0];
		$this->debug->table($users, 'users');
		if ($users) {
			$userid = $users[0]['userid'];
			$this->log('login', $userid, array('provider'=>$authResponse['auth']['provider']));
			$return = $userid;
		}
		$this->debug->groupEnd();
		return $return;
	}