Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/module-integration/Api/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-integration/Api/UserTokenRevokerInterface.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

declare(strict_types=1);

namespace Magento\Integration\Api;

use Magento\Authorization\Model\UserContextInterface;
use Magento\Integration\Api\Exception\UserTokenException;

/**
 * Revokes user tokens.
 */
interface UserTokenRevokerInterface
{
    /**
     * Revoke all previously issued tokens for given user.
     *
     * @param UserContextInterface $userContext
     * @return void
     * @throws UserTokenException
     */
    public function revokeFor(UserContextInterface $userContext): void;
}