From 7d9c9af00124c4ff41efce6de10169d02b35a50e Mon Sep 17 00:00:00 2001 From: chenzhongjie Date: Thu, 11 Apr 2024 12:02:36 +0800 Subject: [PATCH] fix --- pkg/auth/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/auth/jwt.go b/pkg/auth/jwt.go index e083fe29..7a5acf60 100644 --- a/pkg/auth/jwt.go +++ b/pkg/auth/jwt.go @@ -107,7 +107,7 @@ func (auth *JWTAuthSetterVerifier) VerifyToken(user, token string) error { if len(user) > 0 { id, found := claims["email"] if !found { - id, found = claims["id"] + id, _ = claims["id"] } if id != user { return fmt.Errorf("token %s is not for user %s", token, user)