concrete/src/Entity/OAuth/AccessTokenRepository.php
public function getNewToken(ClientEntityInterface $clientEntity, array $scopes, $userIdentifier = null)
    {
        $token = new AccessToken();

        $token->setUserIdentifier($userIdentifier);

        return $token;
    }
public function getNewToken(ClientEntityInterface $clientEntity, array $scopes, $userIdentifier = null)
    {
        $token = new AccessToken();

        $token->setUserIdentifier($userIdentifier);

        return $token;
    }
public function getNewToken ( ClientEntityInterface $ clientEntity , array $ scopes , $ userIdentifier = null ) { $ token = new AccessToken ( ) ; $ token -> setUserIdentifier ( $ userIdentifier ) ; return $ token ; }
Create a new access token

@param ClientEntityInterface $clientEntity
@param ScopeEntityInterface[] $scopes
@param mixed $userIdentifier

@return AccessTokenEntityInterface
Create a new access token