Files
hyperf_rbac_framework_serve…/app/Interface/JwtInterface.php
2025-09-12 15:23:08 +08:00

24 lines
731 B
PHP

<?php
namespace App\Interface;
use Lcobucci\JWT\UnencryptedToken;
interface JwtInterface
{
public function builderAccessToken(string $sub, ?\Closure $callable = null): UnencryptedToken;
public function builderRefreshToken(string $sub, ?\Closure $callable = null): UnencryptedToken;
public function parserAccessToken(string $accessToken): UnencryptedToken;
public function parserRefreshToken(string $refreshToken): UnencryptedToken;
public function addBlackList(UnencryptedToken $token): bool;
public function hasBlackList(UnencryptedToken $token): bool;
public function removeBlackList(UnencryptedToken $token): bool;
public function getConfig(string $key, mixed $default = null): mixed;
}