src/Connection/Connector.php
private function revokeTokens()
    {
        $revocations = array_filter([
            'refresh_token' => $this->session->get('refreshToken'),
            'access_token' => $this->session->get('accessToken'),
        ]);
        $url = uri_for($this->config['accounts'])
            ->withPath($this->config['revoke_url'])
            ->__toString();
        foreach ($revocations as $type => $token) {
            $this->getClient()->request('post', $url, [
                'form_params' => [
                    'token' => $token,
                    'token_type_hint' => $type,
                ],
            ]);
        }
    }
private function revokeTokens()
    {
        $revocations = array_filter([
            'refresh_token' => $this->session->get('refreshToken'),
            'access_token' => $this->session->get('accessToken'),
        ]);
        $url = uri_for($this->config['accounts'])
            ->withPath($this->config['revoke_url'])
            ->__toString();
        foreach ($revocations as $type => $token) {
            $this->getClient()->request('post', $url, [
                'form_params' => [
                    'token' => $token,
                    'token_type_hint' => $type,
                ],
            ]);
        }
    }
private function revokeTokens ( ) { $ revocations = array_filter ( [ 'refresh_token' => $ this -> session -> get ( 'refreshToken' ) , 'access_token' => $ this -> session -> get ( 'accessToken' ) , ] ) ; $ url = uri_for ( $ this -> config [ 'accounts' ] ) -> withPath ( $ this -> config [ 'revoke_url' ] ) -> __toString ( ) ; foreach ( $ revocations as $ type => $ token ) { $ this -> getClient ( ) -> request ( 'post' , $ url , [ 'form_params' => [ 'token' => $ token , 'token_type_hint' => $ type , ] , ] ) ; } }
Revokes the access and refresh tokens saved in the session.

@see Connector::logOut()

@throws \GuzzleHttp\Exception\GuzzleException
Revokes the access and refresh tokens saved in the session .