mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 18:17:49 +08:00
fix : jwt
Some checks failed
Build Docker / build (push) Has been cancelled
Some checks failed
Build Docker / build (push) Has been cancelled
This commit is contained in:
@@ -46,6 +46,16 @@ final class BaseTokenService implements CheckTokenInterface
|
||||
$this->getJwt()->hasBlackList($token) && throw new ErrException('token已过期');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $jwt
|
||||
* @return $this
|
||||
*/
|
||||
public function setJwt(string $jwt): self
|
||||
{
|
||||
$this->jwt = $jwt;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UnencryptedToken $token
|
||||
* @return \Closure
|
||||
|
||||
Reference in New Issue
Block a user