From c2ebe4c670433b57bc824b7631f42cccc3cc898d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 6 Aug 2021 17:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Jwt/Jwt.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/System/Jwt/Jwt.php b/System/Jwt/Jwt.php index 6b1c4889..6e8bf0ec 100644 --- a/System/Jwt/Jwt.php +++ b/System/Jwt/Jwt.php @@ -3,7 +3,6 @@ declare(strict_types=1); namespace Snowflake\Jwt; -use Annotation\Inject; use Exception; use Server\Constrict\Request; use Snowflake\Abstracts\Component; @@ -97,10 +96,10 @@ class Jwt extends Component /** * @param $token - * @return string + * @return string|int * @throws JWTAuthTokenException */ - public function getUnionId($token): string + public function getUnionId($token): string|int { return $this->unpack($token)['unionId']; }