public function revokeAuthCode($codeId)
    {
        $code = $this->find($codeId);

        if (!$code) {
            throw new \InvalidArgumentException('Invalid auth token code');
        }

        $this->getEntityManager()->transactional(function(EntityManagerInterface $em) use ($code) {
            $code = $em->merge($code);
            if ($code) {
                $em->remove($code);
            }
        });
    }