mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 17:07:49 +08:00
fix : update path And request
This commit is contained in:
10
app/Common/Interface/CheckTokenInterface.php
Normal file
10
app/Common/Interface/CheckTokenInterface.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Common\Interface;
|
||||
|
||||
use Lcobucci\JWT\UnencryptedToken;
|
||||
|
||||
interface CheckTokenInterface
|
||||
{
|
||||
public function checkJwt(UnencryptedToken $token): void;
|
||||
}
|
||||
24
app/Common/Interface/JwtInterface.php
Normal file
24
app/Common/Interface/JwtInterface.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Common\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;
|
||||
}
|
||||
Reference in New Issue
Block a user