src/AuthorizesWithOAuth2.php
public function invalidateRefreshToken(AccessToken $token)
    {
        $this->getAuthorizationServer()->getAuthenticatedRequest('DELETE',
            $this->authorizationServerUri . '/v2/auth/token', $token, [
                'json' => [
                    'token' => $token->getRefreshToken(),
                ],
            ]);

        $user = $this->getFrameworkBridge()->getUser($token->getResourceOwnerId());
        $user->clearOAuthToken();
    }
public function invalidateRefreshToken(AccessToken $token)
    {
        $this->getAuthorizationServer()->getAuthenticatedRequest('DELETE',
            $this->authorizationServerUri . '/v2/auth/token', $token, [
                'json' => [
                    'token' => $token->getRefreshToken(),
                ],
            ]);

        $user = $this->getFrameworkBridge()->getUser($token->getResourceOwnerId());
        $user->clearOAuthToken();
    }
public function invalidateRefreshToken ( AccessToken $ token ) { $ this -> getAuthorizationServer ( ) -> getAuthenticatedRequest ( 'DELETE' , $ this -> authorizationServerUri . '/v2/auth/token' , $ token , [ 'json' => [ 'token' => $ token -> getRefreshToken ( ) , ] , ] ) ; $ user = $ this -> getFrameworkBridge ( ) -> getUser ( $ token -> getResourceOwnerId ( ) ) ; $ user -> clearOAuthToken ( ) ; }
Invalidate the refresh token for the given access token.

@param AccessToken $token
Invalidate the refresh token for the given access token .