From 81da68d9e4e1d6e004bb22cb23a7a74224cc12d7 Mon Sep 17 00:00:00 2001 From: dragove Date: Wed, 14 Feb 2024 22:03:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/plus/maa/backend/service/jwt/JwtToken.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/plus/maa/backend/service/jwt/JwtToken.kt b/src/main/kotlin/plus/maa/backend/service/jwt/JwtToken.kt index 5ebc508a..f8fb906f 100644 --- a/src/main/kotlin/plus/maa/backend/service/jwt/JwtToken.kt +++ b/src/main/kotlin/plus/maa/backend/service/jwt/JwtToken.kt @@ -24,8 +24,7 @@ open class JwtToken { this.payload = jwt.payloads // jwtId is nullable - if (null == issuedAt || requiredType != type - ) throw JwtInvalidException() + if (requiredType != type) throw JwtInvalidException() } constructor(