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/UserTokenValidatorInterface.php

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

declare(strict_types=1);

namespace Magento\Integration\Api;

use Magento\Framework\Exception\AuthorizationException;
use Magento\Integration\Api\Data\UserToken;

/**
 * Validates tokens used to authenticate users.
 */
interface UserTokenValidatorInterface
{
    /**
     * Validate user token.
     *
     * @param UserToken $token
     * @throws AuthorizationException
     * @return void
     */
    public function validate(UserToken $token): void;
}