feat: fix bug that custom JWT token no longer includes properties (#4124)

This commit is contained in:
DacongDA
2025-08-27 20:41:27 +08:00
committed by GitHub
parent a0e2be7ba8
commit 2fa0890c11

View File

@@ -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`.