From 2fa0890c11252b9db6d7de8527430433c714ac3f Mon Sep 17 00:00:00 2001 From: DacongDA Date: Wed, 27 Aug 2025 20:41:27 +0800 Subject: [PATCH] feat: fix bug that custom JWT token no longer includes properties (#4124) --- object/token_jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object/token_jwt.go b/object/token_jwt.go index 5ece9a5a..724c078e 100644 --- a/object/token_jwt.go +++ b/object/token_jwt.go @@ -342,7 +342,7 @@ func getClaimsCustom(claims Claims, tokenField []string) jwt.MapClaims { res["provider"] = claims.Provider for _, field := range tokenField { - if strings.HasPrefix(field, "Properties") { + if strings.HasPrefix(field, "Properties.") { /* Use selected properties fields as custom claims. Converts `Properties.my_field` to custom claim with name `my_field`.