public function identity($options = [])
    {
        $token = $this->tokenRepo->get();
        $accessToken = $token['access_token'];
        $url = $token['id'];

        $options['headers']['Authorization'] = "OAuth $accessToken";

        $identity = $this->request($url, $options);

        return $identity;
    }
public function identity($options = [])
    {
        $token = $this->tokenRepo->get();
        $accessToken = $token['access_token'];
        $url = $token['id'];

        $options['headers']['Authorization'] = "OAuth $accessToken";

        $identity = $this->request($url, $options);

        return $identity;
    }
public function identity ( $ options = [ ] ) { $ token = $ this -> tokenRepo -> get ( ) ; $ accessToken = $ token [ 'access_token' ] ; $ url = $ token [ 'id' ] ; $ options [ 'headers' ] [ 'Authorization' ] = "OAuth $accessToken" ; $ identity = $ this -> request ( $ url , $ options ) ; return $ identity ; }
Returns information about the logged-in user.

@param  array

@return array $identity
Returns information about the logged - in user .