public function completeLogin($extrainputs = array()) {
		$request_token = [];
		$request_token['oauth_token'] = $this->request_token['oauth_token'];
		$request_token['oauth_token_secret'] = $this->request_token['oauth_token_secret'];

		$this->logQ('session token '.print_r($request_token,true),'twitter');
		$this->logQ('extra options '.print_r($extrainputs,true),'twitter');
		
		if (isset($extrainputs['oauth_token']) && $request_token['oauth_token'] !== $extrainputs['oauth_token']) {
			throw new \Exception('Twitter oauth. Somethign went wrong. No token in the session');
		}
		
		$connection = new TwitterOAuth($this->options['consumer_key'],$this->options['consumer_secret'], 
			$request_token['oauth_token'], $request_token['oauth_token_secret']);
		$connection->setTimeouts(10, 15);	
		
		$access_token = $connection->oauth("oauth/access_token", array("oauth_verifier" => $extrainputs['oauth_verifier']));
		
		$this->access_token = $access_token;
		
		return $this->getUserProfile();
	}
public function completeLogin($extrainputs = array()) {
		$request_token = [];
		$request_token['oauth_token'] = $this->request_token['oauth_token'];
		$request_token['oauth_token_secret'] = $this->request_token['oauth_token_secret'];

		$this->logQ('session token '.print_r($request_token,true),'twitter');
		$this->logQ('extra options '.print_r($extrainputs,true),'twitter');
		
		if (isset($extrainputs['oauth_token']) && $request_token['oauth_token'] !== $extrainputs['oauth_token']) {
			throw new \Exception('Twitter oauth. Somethign went wrong. No token in the session');
		}
		
		$connection = new TwitterOAuth($this->options['consumer_key'],$this->options['consumer_secret'], 
			$request_token['oauth_token'], $request_token['oauth_token_secret']);
		$connection->setTimeouts(10, 15);	
		
		$access_token = $connection->oauth("oauth/access_token", array("oauth_verifier" => $extrainputs['oauth_verifier']));
		
		$this->access_token = $access_token;
		
		return $this->getUserProfile();
	}
public function completeLogin ( $ extrainputs = array ( ) ) { $ request_token = [ ] ; $ request_token [ 'oauth_token' ] = $ this -> request_token [ 'oauth_token' ] ; $ request_token [ 'oauth_token_secret' ] = $ this -> request_token [ 'oauth_token_secret' ] ; $ this -> logQ ( 'session token ' . print_r ( $ request_token , true ) , 'twitter' ) ; $ this -> logQ ( 'extra options ' . print_r ( $ extrainputs , true ) , 'twitter' ) ; if ( isset ( $ extrainputs [ 'oauth_token' ] ) && $ request_token [ 'oauth_token' ] !== $ extrainputs [ 'oauth_token' ] ) { throw new \ Exception ( 'Twitter oauth. Somethign went wrong. No token in the session' ) ; } $ connection = new TwitterOAuth ( $ this -> options [ 'consumer_key' ] , $ this -> options [ 'consumer_secret' ] , $ request_token [ 'oauth_token' ] , $ request_token [ 'oauth_token_secret' ] ) ; $ connection -> setTimeouts ( 10 , 15 ) ; $ access_token = $ connection -> oauth ( "oauth/access_token" , array ( "oauth_verifier" => $ extrainputs [ 'oauth_verifier' ] ) ) ; $ this -> access_token = $ access_token ; return $ this -> getUserProfile ( ) ; }
Completes social login. Is caled after redirect from twitter auth page

@param array $extrainputs List of POST/GET arguments names
Completes social login . Is caled after redirect from twitter auth page