concrete/src/Entity/OAuth/RefreshTokenRepository.php
public function revokeRefreshToken($tokenId)
    {
        $this->getEntityManager()->transactional(function(EntityManagerInterface $em) use ($tokenId) {
            $token = $this->find($tokenId);

            if ($token) {
                $em->remove($token);
            }
        });
    }
public function revokeRefreshToken($tokenId)
    {
        $this->getEntityManager()->transactional(function(EntityManagerInterface $em) use ($tokenId) {
            $token = $this->find($tokenId);

            if ($token) {
                $em->remove($token);
            }
        });
    }
public function revokeRefreshToken ( $ tokenId ) { $ this -> getEntityManager ( ) -> transactional ( function ( EntityManagerInterface $ em ) use ( $ tokenId ) { $ token = $ this -> find ( $ tokenId ) ; if ( $ token ) { $ em -> remove ( $ token ) ; } } ) ; }
Revoke the refresh token.

@param string $tokenId
@throws \Exception
Revoke the refresh token .