public function issueAccessToken($grant, array $options = [])
    {
        if ($grant instanceof GrantType) {
            $grant = $grant->getValue();
        }

        return parent::getAccessToken($grant, $options);
    }