Newer
Older
gnexus-auth-client-php / src / Contract / TokenEndpointInterface.php
@Eugene Sukhodolskiy Eugene Sukhodolskiy 12 hours ago 383 bytes Initial auth client package scaffold
<?php

declare(strict_types=1);

namespace GNexus\GAuth\Contract;

use GNexus\GAuth\DTO\TokenSet;

interface TokenEndpointInterface
{
    public function exchangeAuthorizationCode(string $code, string $pkceVerifier): TokenSet;

    public function refreshToken(string $refreshToken): TokenSet;

    public function revokeToken(string $token, ?string $tokenTypeHint = null): void;
}