fix(account.auth): 修复了 trait 中错误的可访问性

Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
李东云
2022-04-29 00:51:19 +08:00
parent b2cd1e6efa
commit 87db03bdcb

View File

@@ -21,37 +21,25 @@ trait CannotInvalid
{
/**
* 作废此 token
*
* @param bool $clearAll
*
* @return bool
* @inheritDoc
*/
protected function invalid(bool $clearAll = false): bool
public function invalid(bool $clearAll = false): bool
{
return true;
}
/**
* 根据用户作废 token
*
* @param string $uid
*
* @return bool
* @inheritDoc
*/
protected function invalidByUser(string $uid): bool
public function invalidByUser(string $uid): bool
{
return true;
}
/**
* 作废此 token
*
* @param string $token
*
* @return bool
* @inheritDoc
*/
protected function invalidByToken(string $token): bool
public function invalidByToken(string $token): bool
{
return true;
}