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

declare(strict_types=1);

namespace GNexus\GAuth\Contract;

interface StateStoreInterface
{
    public function put(string $state, \DateTimeImmutable $expiresAt, array $context = []): void;

    public function has(string $state): bool;

    public function getContext(string $state): array;

    public function forget(string $state): void;
}