<?php

namespace App\Domain\Repositories;

use App\Domain\Entities\RefreshToken;

interface TokenRepositoryInterface
{
    public function storeRefreshToken(RefreshToken $token): void;
    public function findRefreshToken(string $tokenHash): ?RefreshToken;
    public function revokeRefreshToken(string $tokenHash): void;
    public function blacklistJti(string $jti, int $expiresAt): void;
    public function isJtiBlacklisted(string $jti): bool;
}
