public function authenticate($code = null) { $service = self::prepareService(); self::$authenticated = true; return self::$auth->authenticate($service, $code); }