concrete/src/Entity/OAuth/AccessTokenRepository.php
public function isAccessTokenRevoked($tokenId)
    {
        /** @var \Concrete\Core\Entity\OAuth\AccessToken $token */
        $token = $this->find($tokenId);
        if (!$token) {
            // The token was manually removed.
            return true;
        }

        $now = new \DateTime('now');
        // If we have a token and it has expired...
        if ($token && $token->getExpiryDateTime() < $now) {
            return true;
        }

        return false;
    }
public function isAccessTokenRevoked($tokenId)
    {
        /** @var \Concrete\Core\Entity\OAuth\AccessToken $token */
        $token = $this->find($tokenId);
        if (!$token) {
            // The token was manually removed.
            return true;
        }

        $now = new \DateTime('now');
        // If we have a token and it has expired...
        if ($token && $token->getExpiryDateTime() < $now) {
            return true;
        }

        return false;
    }
public function isAccessTokenRevoked ( $ tokenId ) { /** @var \Concrete\Core\Entity\OAuth\AccessToken $token */ $ token = $ this -> find ( $ tokenId ) ; if ( ! $ token ) { // The token was manually removed. return true ; } $ now = new \ DateTime ( 'now' ) ; // If we have a token and it has expired... if ( $ token && $ token -> getExpiryDateTime ( ) < $ now ) { return true ; } return false ; }
Check if the access token has been revoked.

@param string $tokenId

@return bool Return true if this token has been revoked
Check if the access token has been revoked .